Re: XML_HTMLSax - memory leak

From: Date: Thu, 08 Jul 2004 21:38:03 +0000
Subject: Re: XML_HTMLSax - memory leak
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13566@lists.php.net to get a copy of this message
Hi, Lubos Kmetko wrote:
I'm using XML_HTMLSax in script which automatically updates database recors by gaining information from some other web pages. The script should usually parse more than 2000 pages so I got into problems with memory leak, even if I try to unset parser object after parsing one page. Memory is not freed (I checked it by memory_get_usage and amount of alocated memory is growing.) So, I would need advice how to free memory after using XML_HTMLSax object. XML_HTMLSax API doesn't provide any method to do that, maybe I should adjust XML_HTMLSax somehow? Thanks for advice.
Looks like the same problem: http://marc.theaimsgroup.com/?l=pear-dev&m=108739601312246&w=2 You need to use current CVS of PEAR.php, where the leak is fixed.

« previous php.pear.general (#13566) next »