From: j dot spit at uptime dot nl Operating system: Windows XP PHP version: 5.0.0b1 (beta1) PHP Bug Type: XML related Bug description: xml_get_current_byte_index always returns 0 on windows
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. -- Edit bug report at http://bugs.php.net/?id=25803&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25803&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25803&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=25803&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=25803&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=25803&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=25803&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=25803&r=support Expected behavior: http://bugs.php.net/fix.php?id=25803&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=25803&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=25803&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=25803&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25803&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=25803&r=dst IIS Stability: http://bugs.php.net/fix.php?id=25803&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=25803&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=25803&r=float