From 2c4a1a48238c525b9dd6b18710c44b318707649f Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 27 Oct 2009 15:28:53 +0000 Subject: Keep memory footprint of it_xml in streaming mode low --- it_xml.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_xml.class b/it_xml.class index 257074c..e38d7de 100644 --- a/it_xml.class +++ b/it_xml.class @@ -76,7 +76,7 @@ function from_xml($xmldata, $p) while (!feof($xmldata) && preg_match('/[\x80-\xff]$/', $data)) # Make sure end of chunk is not in the middle of a UTF8 character $data .= fread($xmldata, 1); - $xmlorig .= $data; + $xmlorig = $data; # Do not append to keep memory footprint down! list($data, $isutf8) = $this->_sanitize($data, $isutf8); $result = xml_parse($parser, $data); } -- cgit v1.2.3