#33375 [NEW]: xml_parse return invalid character error with ISO-8859-1 data

From: Date: Fri, 17 Jun 2005 00:27:10 +0000
Subject: #33375 [NEW]: xml_parse return invalid character error with ISO-8859-1 data
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80498@lists.php.net to get a copy of this message
From: frederic dot lecointre at burnweb dot net Operating system: w2k PHP version: 5.0.4 PHP Bug Type: XML related Bug description: xml_parse return invalid character error with ISO-8859-1 data Description: ------------ xml_parse return invalid character error with ISO-8859-1 data. Reproduce code: --------------- <?php function startElement($parser, $name, $attribs){return true;} function endElement($parser, $name){return true;} $xml_string = ' <head> <title>Frédéric</title> </head> '; $xml_parser = xml_parser_create('ISO-8859-1'); xml_set_element_handler($xml_parser, "startElement", "endElement"); if (!xml_parse($xml_parser, $xml_string, true)) { die(sprintf("error : %s at line %d col %d\n", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser), xml_get_current_column_number($xml_parser))); } ?> Actual result: -------------- error : Invalid character at line 3 col 20 -- Edit bug report at http://bugs.php.net/?id=33375&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33375&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33375&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33375&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33375&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33375&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33375&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33375&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33375&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33375&r=support Expected behavior: http://bugs.php.net/fix.php?id=33375&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33375&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33375&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33375&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33375&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33375&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33375&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33375&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33375&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33375&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33375&r=mysqlcfg

« previous php.bugs (#80498) next »