Bug #79642 [Com]: xml_parse() fails with XML_ERROR_NO_MEMORY with a mere 17M file

From: Date: Wed, 27 May 2020 14:07:29 +0000
Subject: Bug #79642 [Com]: xml_parse() fails with XML_ERROR_NO_MEMORY with a mere 17M file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-227203@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=79642&edit=1 ID: 79642 Comment by: sjon@php.net Reported by: php4fan at gmail dot com Summary: xml_parse() fails with XML_ERROR_NO_MEMORY with a mere 17M file Status: Open Type: Bug Package: *XML functions Operating System: debian PHP Version: 7.2.31 Block user comment: N Private report: N New Comment: Can you share the xml file and the exact code you are using? I've tested the (chunked) example code on https://www.php.net/xml_parse using a 112M XML file and have no problems running it with a 128M memory_limit [1] http://www.ins.cwi.nl/projects/xmark/Assets/standard.gz Previous Comments: ------------------------------------------------------------------------ [2020-05-27 13:05:39] php4fan at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=79642&edit=1

« previous php.bugs (#227203) next »