From:             php at puntloos dot nl
Operating system: Linux Debian 2.6.13
PHP version:      5.0.5
PHP Bug Type:     *XML functions
Bug description:  Specific proper XML code breaks xml parser

Description:
------------
I've got a specific, properly formatted (as far as I can tell) RSS file
that breaks the XML parser.

Reproduce code:
---------------
<?php
$url="http://130.89.22.201/break.rss";;
[EMAIL PROTECTED](fopen("$url","r"),140000) or die("Cant open $url!");
$myar=getXmlData($data);
function getXmlData($xml_doc) {
        $parser = xml_parser_create();
        xml_parse_into_struct($parser,$xml_doc,$vals,$index) or
die(xml_error_string(xml_get_error_code($parser)));
        xml_parser_free($parser);
}
?>

Expected result:
----------------
I expect it not to produce "Invalid document end" with the rss file
(http://130.89.22.201/break.rss)

Actual result:
--------------
It procudes "Invalid document end" :P

Somehow it seems to do with the total size of the RSS file but I've parsed
way bigger files.

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

Reply via email to