Re: AW: AW: [PEAR-DEV] PACKAGE PROPOSAL: XML_XMLPull

From: Date: Mon, 15 Sep 2003 20:04:48 +0000
Subject: Re: AW: AW: [PEAR-DEV] PACKAGE PROPOSAL: XML_XMLPull
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21521@lists.php.net to get a copy of this message
Harry Fuecks wrote:
Will be working, but could be done better :-) With large files, you are building a huge array before you get any events back. You can get some memory problems doing this...
As Stephan points out above, with large files you get a huge array, because XML_Parser reads to the end of the file. I'd forgotten the reason why I used the PEAR::XML_SaxFilters IO iterators but this reminds me - they make sure that the array is only built up to the current end of the parsed buffer so no problem with large documents.
This bug was created and fixed in CVS, and has never shown up in a release. -- Marshall Roch http://pear.php.net/user/mroch

« previous php.pear.dev (#21521) next »