#30275 [Opn]: Erroneous 'Undeclared entity' error

From: Date: Wed, 29 Sep 2004 12:54:44 +0000
Subject: #30275 [Opn]: Erroneous 'Undeclared entity' error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-66873@lists.php.net to get a copy of this message
ID: 30275 User updated by: michiel at trendserver dot nl Reported By: michiel at trendserver dot nl Status: Open Bug Type: XML related Operating System: Debian PHP Version: 5.0.2 New Comment: Also occurs using http://snaps.php.net/win32/php5-win32-200409291030.zip Previous Comments: ------------------------------------------------------------------------ [2004-09-29 14:41:17] michiel at trendserver dot nl 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 "&#252;"> ]> <test>&uuml;</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 this bug report at http://bugs.php.net/?id=30275&edit=1

« previous php.bugs (#66873) next »