ID: 22055 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Feedback Bug Type: Scripting Engine problem Operating System: RedHat 7.2 PHP Version: 4.3.0 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2003-02-04 14:35:56] [EMAIL PROTECTED] /* If you don't set the UP property, garbage collection is done in real time If you set the UP property, garbage collection is done on script shutdown only and the VmSize increase. This is a test case but if a sub-object (in some package) creates a circular reference with a sub-sub-object you leak memory without the knowledge of it. */ for($i=1;$i<=$nb_loop;$i++){ echo "<br>loop $i"; flush(); for($j=1;$j<=$nb_by_loop;$j++){ $a=&new A(500); $a->b=&new B(500); $a->b->UP=&$a; // Memory Leak here // unset($a->b->up); } sleep($sleep_by_loop); } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22055&edit=1