|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-03 12:51 UTC] tony2001@php.net
[2006-07-03 14:07 UTC] rrichards@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
Description: ------------ Hi, i recive this message when i try to parse the xml file. Memory allocation failed : growing buffer.. The filesize of the XML is 365.852 KB; 350 MB. in the PHP.ini the memory_limit = 450 M. but i always recive the message. Reproduce code: --------------- this is the code: function xml2php($file) { $xml_parser = xml_parser_create(); if (!$fp = fopen($file, "r")) { die("unable to open XML"); } $contents = fread($fp, filesize($file)); fclose($fp); xml_parse_into_struct($xml_parser, $contents, $arr_vals); xml_parser_free($xml_parser); $this->arr_xml = $arr_vals; } Expected result: ---------------- Nothing... Actual result: -------------- Memory allocation failed : growing buffer..