|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-18 19:28 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 12:00:02 2025 UTC |
Description: ------------ ext/xml strips the exclamation marks ("!") off comments Reproduce code: --------------- <?php $xml = "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?> <root><!-- a comment -->bl?</root>"; $xp = xml_parser_create('iso-8859-1'); xml_set_default_handler($xp, 'var_dump'); xml_parse($xp, $xml); ?> Expected result: ---------------- resource(1) of type (xml) string(17) "<!-- a comment -->" Actual result: -------------- resource(1) of type (xml) string(17) "<-- a comment -->"