diff options
author | Christian Schneider | 2009-10-27 15:28:53 +0000 |
---|---|---|
committer | Christian Schneider | 2009-10-27 15:28:53 +0000 |
commit | 2c4a1a48238c525b9dd6b18710c44b318707649f (patch) | |
tree | 3aa0f46a818a52bd455cc625d933e8ceb2a39849 /it_xml.class | |
parent | 812a0ec935ce5b05b44621beb2f0e2959b4da224 (diff) | |
download | itools-2c4a1a48238c525b9dd6b18710c44b318707649f.tar.gz itools-2c4a1a48238c525b9dd6b18710c44b318707649f.tar.bz2 itools-2c4a1a48238c525b9dd6b18710c44b318707649f.zip |
Keep memory footprint of it_xml in streaming mode low
Diffstat (limited to 'it_xml.class')
-rw-r--r-- | it_xml.class | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |