|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-19 04:24 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 17:00:01 2025 UTC |
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?