Bug #79642 [NEW]: xml_parse() fails with XML_ERROR_NO_MEMORY with a mere 17M file
| From: | php4fan at gmail dot com | Date: | Wed, 27 May 2020 13:05:39 +0000 |
| Subject: | Bug #79642 [NEW]: xml_parse() fails with XML_ERROR_NO_MEMORY with a mere 17M file | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-227201@lists.php.net to get a copy of this message | ||
From: php4fan at gmail dot com
Operating system: debian
PHP version: 7.2.31
Package: *XML functions
Bug Type: Bug
Bug description:xml_parse() fails with XML_ERROR_NO_MEMORY with a mere 17M file
Description:
------------
I'm trying to parse an XML file that is about 17 MegaBytes in size with
xml_parse(), and I get the XML_ERROR_NO_MEMORY error.
Even increasing the memory limit to 8 GB.
I can understand a little bit of overhead, but there's no way using
several GB of memory, to decode an XML that is just 17MB in its string
form, can be justified.
--
Edit bug report at https://bugs.php.net/bug.php?id=79642&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79642&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79642&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79642&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79642&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79642&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79642&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79642&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79642&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79642&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79642&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79642&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79642&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79642&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79642&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79642&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79642&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79642&r=mysqlcfg