Test: /ext/dom/tests/bug67081.phpt - Version 5.5.13        

Bug #67081 DOMDocumentType->internalSubset returns entire DOCTYPE tag, not only the subset
Submitted: 2014-04-15 18:45:54 Modified:
From: petrhudecek2010 Assigned:
Status: Closed Package: DOM XML related
PHP Version: 5.5.11 OS: Windows

There are 2 different diffs reported by users for this test.

Count Diff
682 (100%)
007+ string(36) "<!ENTITY % incent SYSTEM "dom.ent">
008+ "
009+ ===DONE===
007- string(277) "<!ENTITY % incent SYSTEM "dom.ent">
008- <!ENTITY amp "&#38;#38;">
009- <!ENTITY gt "&#62;">
010- <!ENTITY % coreattrs "title CDATA #IMPLIED">
011- <!ENTITY % attrs "%coreattrs;">
012- <!ATTLIST foo bar CDATA #IMPLIED>
013- <!ELEMENT foo (#PCDATA)>
014- <!ELEMENT root (foo)+>
015- <!ATTLIST th title CDATA #IMPLIED>
016- "
017- ===DONE===
3 (0%)
007+
008+ Notice: DOMDocument::load(): failed to load external entity "dom.ent" in Entity, line: 1 in %s/bug67081.php on line 15
009+ string(36) "<!ENTITY % incent SYSTEM "dom.ent">
007- string(277) "<!ENTITY % incent SYSTEM "dom.ent">
008- <!ENTITY amp "&#38;#38;">
009- <!ENTITY gt "&#62;">
010- <!ENTITY % coreattrs "title CDATA #IMPLIED">
011- <!ENTITY % attrs "%coreattrs;">
012- <!ATTLIST foo bar CDATA #IMPLIED>
013- <!ELEMENT foo (#PCDATA)>
014- <!ELEMENT root (foo)+>
015- <!ATTLIST th title CDATA #IMPLIED>