Bug #17779: DOMXML can't handle SYSTEM DTD

From: Date: Sun, 16 Jun 2002 09:47:17 +0000
Subject: Bug #17779: DOMXML can't handle SYSTEM DTD
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10565@lists.php.net to get a copy of this message
From: flying@dom.natm.ru Operating system: Windows 2000 PHP version: 4.2.1 PHP Bug Type: DOM XML related Bug description: DOMXML can't handle SYSTEM DTD DOMXML module can't load XML documents, containing SYSTEM DTD. Here is example: test.xml ======== <?xml version="1.0"?> <!DOCTYPE root SYSTEM "ext.dtd"> <root>&test;</root> ext.dtd ======= <!ENTITY test "***TEST***"> Loading this document as: $xml = xmldoc(join('',file('test.xml'))); Throws warning about undefined entity &test; Loading this document as: $xml = xmldoc(join('',file('test.xml')),DOMXML_LOAD_COMPLETE_ATTRS); Throws warning: Warning: failed to load external entity "ext.dtd" -- Edit bug report at http://bugs.php.net/?id=17779&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17779&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17779&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17779&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17779&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17779&r=support Expected behavior: http://bugs.php.net/fix.php?id=17779&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17779&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17779&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17779&r=globals

« previous php.bugs (#10565) next »