|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-09-26 03:54 UTC] sniper@php.net
[2003-09-26 07:48 UTC] skissane at ics dot mq dot edu dot au
[2003-09-29 07:35 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 29 00:00:01 2025 UTC |
Description: ------------ Namespace support by the xml_* functions is broken in PHP5 latest snapshot (works fine in PHP4). Reproduce code: --------------- <?php function startElement($parser,$name,$attribs) { echo $name . "\n"; } function endElement($parser,$name) { } $parser = xml_parser_create_ns("UTF-8","@"); xml_set_element_handler($parser,'startElement','endElement'); xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); xml_parse($parser, "<foo:a xmlns:foo=\"http://example.com/foo\" xmlns:bar=\"http://example.com/bar\"><bar:b /></foo>\n"); xml_parser_free($parser); ?> Expected result: ---------------- PHP 4.3.3 gives output: http://example.com/foo@a http://example.com/bar@b Actual result: -------------- http://example.com/foo:a bar:b