ID: 46866 Updated by: rricha...@php.net Reported By: bill at billjill dot org -Status: Open +Status: Bogus -Bug Type: XML Reader +Bug Type: *XML functions Operating System: Linux PHP Version: 5.2.8 New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Dupe of bug #45996 Previous Comments: ------------------------------------------------------------------------ [2008-12-15 03:57:35] bill at billjill dot org Description: ------------ Under 5.2.6 and earlier version, the xml parser would correctly read in html entities (such as <) in the XML. In 5.2.8, these entities are being ignored Reproduce code: --------------- You can see the source for a simple test program here: http://outofthebloo.com/test/xmlparsertest.php.txt Expected result: ---------------- Do a View Source on the result of the xmlparsertest.php program, and you should see this (see the portion toward the bottom near "This should be bold") Array ( [0] => Array ( [name] => OVERLAYS [attrs] => Array ( ) [children] => Array ( [0] => Array ( [name] => OVERLAY [attrs] => Array ( ) [children] => Array ( [0] => Array ( [name] => NAME [attrs] => Array ( ) [tagData] => Test ) [1] => Array ( [name] => TYPE [attrs] => Array ( ) [tagData] => template ) [2] => Array ( [name] => SYNTAX [attrs] => Array ( ) [tagData] => <div id=quote><b>This should be bold</b></div> ) ) ) ) ) ) Actual result: -------------- Here's the actual result. NOTE that the "<" and ">" tag characters are missing near the "This should be bold" text: Array ( [0] => Array ( [name] => OVERLAYS [attrs] => Array ( ) [children] => Array ( [0] => Array ( [name] => OVERLAY [attrs] => Array ( ) [children] => Array ( [0] => Array ( [name] => NAME [attrs] => Array ( ) [tagData] => Test ) [1] => Array ( [name] => TYPE [attrs] => Array ( ) [tagData] => template ) [2] => Array ( [name] => SYNTAX [attrs] => Array ( ) [tagData] => div id=quotebThis should be bold/b/div ) ) ) ) ) ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46866&edit=1