|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-04 14:21 UTC] rrichards@php.net
[2005-02-04 15:18 UTC] jsmestad at advantageline dot com
[2005-02-07 21:43 UTC] jsmestad at advantageline dot com
[2005-02-13 22:30 UTC] vrana@php.net
[2005-02-13 22:30 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 03:00:01 2025 UTC |
Description: ------------ The XML parser does not return an error when expected. Reproduce code: --------------- $xml_parser = xml_parser_create(); xml_set_element_handler($xml_parser, "startTag", "endTag"); xml_set_character_data_handler($xml_parser, "cdata"); $data = xml_parse($xml_parser,"<thdoc><this>this&that</this><that>thatdata</that></thdoc>"); printf("%s at line %d", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser)); Expected result: ---------------- not well-formed (invalid token) at line 1 Actual result: -------------- No error at line 1