Re: XML_HTMLSax - memory leak

From: Date: Sun, 11 Jul 2004 08:26:14 +0000
Subject: Re: XML_HTMLSax - memory leak
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13630@lists.php.net to get a copy of this message
So it is clear that PHP allocate about 150kB (what is size of file) of memory after reading HTML file to $doc variable and then another 150kB after parsing file for new XHTML file (which is stored within object's variable $xhtml). It's logical but how to free this memory after I don't need neither $doc variable nor parser object? Unsetting the variable or object doesn't help. Thanks, Lubos
Just an dirty idea, but if you can run PHP5 you may extend the needed classes and call __destruct() yourself? Dont forget remember that the subclasses constructor need to pass the arguments to parent::Class_Name($arg1,$arg2,..$argn);

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