#11354 [Com]: docs allocated by xmlParseFile need to be freed

From: Date: Tue, 20 Jul 2004 15:06:04 +0000
Subject: #11354 [Com]: docs allocated by xmlParseFile need to be freed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62962@lists.php.net to get a copy of this message
ID: 11354 Comment by: free-sex1715 at hotmail dot com Reported By: tgagne at efinnet dot com Status: Closed Bug Type: DOM XML related Operating System: RHat 6.2 PHP Version: 4.0.5 New Comment: <a href=http://worst-redheads-phot.da.ru>sex free</a> Previous Comments: ------------------------------------------------------------------------ [2003-04-25 11:05:53] sniper@php.net This was about domxml, and it will have domdocument->free() in it in PHP 4.3.2. This is already in CVS. ------------------------------------------------------------------------ [2001-11-22 02:51:12] derick@php.net Suspended for now, as there is no imediate fix for this. ------------------------------------------------------------------------ [2001-06-29 05:10:41] derick@php.net Zeev, Andi, is this possible with the Zend Engine at all? Are the destructers called when a variabele is reassigned? Derick ------------------------------------------------------------------------ [2001-06-08 06:32:44] tgagne at efinnet dot com In a loop: while (somethings true) { $doc = xmlDocFile($xmlFile); } All the documents aren't freed until the CGI finishes. Instead of waiting until the script finishes, the memory (which can be HUGE) must be deallocated as the variable gets reassigned. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=11354&edit=1

« previous php.bugs (#62962) next »