Req #68325 [NEW]: LIBXML_PARSEHUGE cannot be set for xml_parser_create

From: Date: Wed, 29 Oct 2014 17:13:21 +0000
Subject: Req #68325 [NEW]: LIBXML_PARSEHUGE cannot be set for xml_parser_create
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188363@lists.php.net to get a copy of this message
From: pdx at pdx dot hu Operating system: CentOS PHP version: 5.4.34 Package: XML related Bug Type: Feature/Change Request Bug description:LIBXML_PARSEHUGE cannot be set for xml_parser_create Description: ------------ --- From manual page: http://www.php.net/function.xml-parser-set-option --- Short story: since LibXML>2.7.6 larger xml chunks must be explicitly allowed by setting LIBXML_PARSEHUGE for libxml. There is no option to do that with xml_parser_set_option. And believe me, xml_parser indeed chokes on most of what I throw at it. Please see this discussion at http://stackoverflow.com/questions/25042325/sax-parser-php-no-memory-at-line-x . The version is actually 5.4.33 (the latest available 5.4 branch on Remi's CentOS packages), but from the documentation it's clear that it hasn't been dealt with yet. Also, bug#65604 https://bugs.php.net/bug.php?id=65604&edit=2 deals with the same source of problem, but there has been no fix as of yet. Test script: --------------- not necessary. Expected result: ---------------- correct XML parsing as before. Actual result: -------------- XML error: No memory at line XX (various). -- Edit bug report at https://bugs.php.net/bug.php?id=68325&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68325&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68325&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68325&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=68325&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=68325&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=68325&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=68325&r=needscript Try newer version: https://bugs.php.net/fix.php?id=68325&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=68325&r=support Expected behavior: https://bugs.php.net/fix.php?id=68325&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=68325&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=68325&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=68325&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68325&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=68325&r=dst IIS Stability: https://bugs.php.net/fix.php?id=68325&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=68325&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=68325&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=68325&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=68325&r=mysqlcfg

« previous php.bugs (#188363) next »