#38755 [NEW]: Parser error when loading a file with odd characters

Ask a Question related to PHP Bugs, Design and Development.

  1. #1

    Default #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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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,...
  3. #2

    Default #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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139