|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-24 01:10 UTC] moriyoshi@php.net
[2003-11-26 16:07 UTC] j dot spit at uptime dot nl
[2004-01-08 11:25 UTC] j dot spit at uptime dot nl
[2004-01-08 22:56 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 07:00:01 2025 UTC |
Description: ------------ xml_get_current_byte_index always returns 0 on windows xp, it works fine on Linux systems. Using PHP5 beta 1 on both platforms. Reproduce code: --------------- <?php function startElement($parser,$name,$attribs) { echo "Start : ".xml_get_current_byte_index( $parser )."<br>"; } function endElement($parser,$name) { echo "End : ".xml_get_current_byte_index( $parser )."<br>"; } $parser = xml_parser_create(); xml_set_element_handler($parser,'startElement','endElement'); xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); xml_parse($parser, "<a b=\"x\">test<c>blaat</c></a>"); xml_parser_free($parser); ?> Expected result: ---------------- Start : 0 Start : 13 End : 21 End : 25 This is the output on a Linux system. Actual result: -------------- Start : 0 Start : 0 End : 0 End : 0 This is the output on a Windows XP system.