ID:               37996
 Updated by:       [EMAIL PROTECTED]
 Reported By:      GastonRobledo at gmail dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         *XML functions
 Operating System: XP, Linux
 PHP Version:      5.1.4
 New Comment:

Please provide full error messages and not just parts of them.
Apparently I can't reproduce it without your 350Mb XML file and there
is no such error message in PHP, so.. where exactly it comes from?
Which line, function etc.? 


Previous Comments:
------------------------------------------------------------------------

[2006-07-03 12:27:51] GastonRobledo at gmail dot com

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..


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37996&edit=1

Reply via email to