#43347 [Opn->Fbk]: Big5 RSS Feed crashes xml_parse() function
| From: | jani@php.net | Date: | Tue, 20 Nov 2007 16:49:40 +0000 |
| Subject: | #43347 [Opn->Fbk]: Big5 RSS Feed crashes xml_parse() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-119895@lists.php.net to get a copy of this message | ||
ID: 43347
Updated by: jani@php.net
Reported By: pschmandra at hotmail dot com
-Status: Open
+Status: Feedback
-Bug Type: XML Reader
+Bug Type: XML related
Operating System: Red Hat Linux Enterprise 5
PHP Version: 5.2.5
New Comment:
What was the full configure line used to configure PHP in this case?
And I don't see any crash there, just a normal error for passing data
with encoding which isn't supported by the xml library in use..
Previous Comments:
------------------------------------------------------------------------
[2007-11-20 14:58:22] pschmandra at hotmail dot com
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 this bug report at http://bugs.php.net/?id=43347&edit=1