ID:               22293
 Updated by:       [EMAIL PROTECTED]
 Reported By:      christian at shockwaved dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Class/Object related
 Operating System: FreeBSD
 PHP Version:      4.2.3
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Is fixed in PHP-5-dev...


Previous Comments:
------------------------------------------------------------------------

[2003-02-19 04:18:21] christian at shockwaved dot com

We have gone through some testing and found that PHP leaks quite some
ressources when creating references to $this. Here's an example
script:

<?php

class foo {

    var $me;

    function foo() {
        $this->me = &$this;
    }

}

while ($i++ < 100000) { 
    $bar = new foo();
    unset($bar);
}

sleep(42);

?>

Can we do anything else to provide you with means to solve this
problem?

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22293&edit=1

Reply via email to