From:             pschmandra at hotmail dot com
Operating system: Red Hat Linux Enterprise 5
PHP version:      5.2.5
PHP Bug Type:     XML Reader
Bug description:  xml_parse() function is broken

Description:
------------
After upgrading PHP5 the xml_parse() parser throws 

Warning: xml_parse() [function.xml-parse]: input conversion failed due to
input error, bytes 0xA3 0xEE 0x7D 0x5F

when parsing Chineese Traditional BBC News Feed.

newsrss.bbc.co.uk/rss/chinese/trad/taiwan_hk/rss.xml.

This function works perfectly using PHP4. Googling this error brings ~800
similar results.

Reproduce code:
---------------
if(!xml_parse($this->feedReader, $BBC_data)){
                                                $this->in_error = true;
                                                $this->error_msg = sprintf("XML 
Error: %s at line %d",
xml_error_string(xml_get_error_code($this->feedReader)),
xml_get_current_line_number($this->feedReader));
                                        }

Expected result:
----------------
Expect xml_parse() function to parse feed without crashing ala PHP4.

Actual result:
--------------
xml_parse() function crashes throwing

Warning: xml_parse() [function.xml-parse]: input conversion failed due to
input error, bytes 0xA3 0xEE 0x7D 0x5F

-- 
Edit bug report at http://bugs.php.net/?id=43347&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43347&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43347&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43347&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43347&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43347&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43347&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43347&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43347&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43347&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43347&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43347&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43347&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43347&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43347&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43347&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43347&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43347&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43347&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43347&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43347&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43347&r=mysqlcfg

Reply via email to