Ask a Question related to PHP Bugs, Design and Development.
-
shadow at overdrawn dot net #1
#38755 [NEW]: Parser error when loading a file with odd characters
From: shadow at overdrawn dot net
Operating system: Debian
PHP version: 5.1.6
PHP Bug Type: SimpleXML related
Bug description: Parser error when loading a file with odd characters
Description:
------------
When loading an xml file (outputted from azureus) the simplexml parser
fails and errors out when it hits a hex 18 character.
Reproduce code:
---------------
$return = simplexml_load_file($xml_filename);
Example XML file: [url]http://bits.overdrawn.net/wtf.xml.gz[/url]
Actual result:
--------------
Warning: simplexml_load_file() [function.simplexml-load-file]:
/files/Azureus_Stats.xml:34: parser error : internal error in
/usr/local/apache2/htdocs/downloads/functions.php on line 59
Warning: simplexml_load_file() [function.simplexml-load-file]:
oundException:[url]http://www.letsroll911.org/BTracker/announce.php?info_hash=%c6%8aL[/url]
in /usr/local/apache2/htdocs/downloads/functions.php on line 59
Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in
/usr/local/apache2/htdocs/downloads/functions.php on line 59
--
Edit bug report at [url]http://bugs.php.net/?id=38755&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=38755&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=38755&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=38755&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=38755&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=38755&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=38755&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=38755&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=38755&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=38755&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=38755&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=38755&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=38755&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=38755&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=38755&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=38755&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=38755&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=38755&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=38755&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=38755&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=38755&r=mysqlcfg[/url]
shadow at overdrawn dot net Guest
-
Loading ISO-8859 (Latin1) characters from XML
Have some experience loading XML files, but this is a new issue to me. I see my accented characters displaying properly in my text editor. And I've... -
Trouble with truncation error when loading data from a file
The table has many columns, but it includes a column like: CREATE TABLE f ( ... `x` DECIMAL(10,2) DEFAULT NULL, ... ) ENGINE=InnoDB; I use... -
error loading non-utf-8 XML file
I'm trying to create a rss-reader, which will be used on a dedicated platform. I've got everything up and running, except for one. I need to... -
Smart Client using Web Service - Error loading XML file
Hi, I have a VB.NET application which uses one of my Web Services. It runs fine when run directly on the local machine. But when run via a Web... -
how to read japanese characters (multilingual characters) from a text file and save them in Access database ???
HI All i m trying to read a text file, having some japanese characters and saved as UTF-8 encoding. I m using ASP,FSO ... my code is below,... -
tony2001@php.net #2
#38755 [Opn->Bgs]: Parser error when loading a file with odd characters
ID: 38755
Updated by: [email]tony2001@php.net[/email]
Reported By: shadow at overdrawn dot net
-Status: Open
+Status: Bogus
Bug Type: SimpleXML related
Operating System: Debian
PHP Version: 5.1.6
New Comment:
The error message comes from libxml2. not PHP, thus we cannot
change/fix it.
Previous Comments:
------------------------------------------------------------------------
[2006-09-08 21:00:14] shadow at overdrawn dot net
Description:
------------
When loading an xml file (outputted from azureus) the simplexml parser
fails and errors out when it hits a hex 18 character.
Reproduce code:
---------------
$return = simplexml_load_file($xml_filename);
Example XML file: [url]http://bits.overdrawn.net/wtf.xml.gz[/url]
Actual result:
--------------
Warning: simplexml_load_file() [function.simplexml-load-file]:
/files/Azureus_Stats.xml:34: parser error : internal error in
/usr/local/apache2/htdocs/downloads/functions.php on line 59
Warning: simplexml_load_file() [function.simplexml-load-file]:
oundException:[url]http://www.letsroll911.org/BTracker/announce.php?info_hash=%c6%8aL[/url]
in /usr/local/apache2/htdocs/downloads/functions.php on line 59
Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in
/usr/local/apache2/htdocs/downloads/functions.php on line 59
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=38755&edit=1[/url]
tony2001@php.net Guest



Reply With Quote

