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

Reply via email to