Bug #60511 [NEW]: XMLReader chokes on mid-size 'single line' documents

From: Date: Tue, 13 Dec 2011 15:35:45 +0000
Subject: Bug #60511 [NEW]: XMLReader chokes on mid-size 'single line' documents
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165837@lists.php.net to get a copy of this message
From:             
Operating system: Mac OS X 10.6.8
PHP version:      5.3.8
Package:          XML Reader
Bug Type:         Bug
Bug description:XMLReader chokes on mid-size 'single line' documents

Description:
------------
I must say in honesty that I have only verified in 5.3.6 and 5.2.17, I have
no 
option to verify in the very latest versions.

I have created a script that parses large XML files. Essentially these
files are 
single line documents without returns between the tags. When running the
script 
(see URL), I get a timeout after processing just a few nodes.

Incidentally I had a copy of the same XML file at hand that had been
formatted for 
readability in BBEdit. To my surprise this version was parsed to the very
end! 


Test script:
---------------
Test script
http://test.etibioinformatics.nl/xmlreader/index.php.zip

Two version of the same XML file
http://test.etibioinformatics.nl/xmlreader/xml.zip

Expected result:
----------------
Timeout


-- 
Edit bug report at https://bugs.php.net/bug.php?id=60511&edit=1
-- 
Try a snapshot (PHP 5.4):            https://bugs.php.net/fix.php?id=60511&r=trysnapshot54
Try a snapshot (PHP 5.3):            https://bugs.php.net/fix.php?id=60511&r=trysnapshot53
Try a snapshot (trunk):              https://bugs.php.net/fix.php?id=60511&r=trysnapshottrunk
Fixed in SVN:                        https://bugs.php.net/fix.php?id=60511&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60511&r=needdocs
Fixed in release:                    https://bugs.php.net/fix.php?id=60511&r=alreadyfixed
Need backtrace:                      https://bugs.php.net/fix.php?id=60511&r=needtrace
Need Reproduce Script:               https://bugs.php.net/fix.php?id=60511&r=needscript
Try newer version:                   https://bugs.php.net/fix.php?id=60511&r=oldversion
Not developer issue:                 https://bugs.php.net/fix.php?id=60511&r=support
Expected behavior:                   https://bugs.php.net/fix.php?id=60511&r=notwrong
Not enough info:                     https://bugs.php.net/fix.php?id=60511&r=notenoughinfo
Submitted twice:                     https://bugs.php.net/fix.php?id=60511&r=submittedtwice
register_globals:                    https://bugs.php.net/fix.php?id=60511&r=globals
PHP 4 support discontinued:          https://bugs.php.net/fix.php?id=60511&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=60511&r=dst
IIS Stability:                       https://bugs.php.net/fix.php?id=60511&r=isapi
Install GNU Sed:                     https://bugs.php.net/fix.php?id=60511&r=gnused
Floating point limitations:          https://bugs.php.net/fix.php?id=60511&r=float
No Zend Extensions:                  https://bugs.php.net/fix.php?id=60511&r=nozend
MySQL Configuration Error:           https://bugs.php.net/fix.php?id=60511&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#165837) next »