From: michiel at trendserver dot nl Operating system: Debian PHP version: 5.0.2 PHP Bug Type: XML related Bug description: Erroneous 'Undeclared entity' error
Description: ------------ The XML extension in PHP5(.02) seems to fail on the use entities that are declared in the same XML file. Reproduce code: --------------- <? $xml = <<<HERE <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE test [ <!ENTITY uuml "ü"> ]> <test>ü</test> HERE; $parser = xml_parser_create(); if (!xml_parse($parser, $xml)) { echo xml_error_string(xml_get_error_code($parser)) . "\n"; } xml_parser_free($parser); ?> Expected result: ---------------- No errors. Actual result: -------------- Undeclared entity error. -- Edit bug report at http://bugs.php.net/?id=30275&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30275&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30275&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30275&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30275&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30275&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30275&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30275&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30275&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30275&r=support Expected behavior: http://bugs.php.net/fix.php?id=30275&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30275&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30275&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30275&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30275&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30275&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30275&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30275&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30275&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30275&r=mysqlcfg