Re: circular references
| From: | Wojtek Meler | Date: | Thu, 22 May 2003 18:16:08 +0000 |
| Subject: | Re: circular references | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-1902@lists.php.net to get a copy of this message | ||
Marcus Börger wrote:
Putting out the warning is better. Eventually a damn note that the user shoot his self in the knee. But that would slow down performance.I know, but memory leaks are pain in back. There is also another solution - it is possible to call destructor just before cleaning memory without taking care about reference numbers. They just shouldn't be unregistered from resources table before there are still references in userland.
AND a side note: even java does not handle that.hmm... http://java.sun.com/docs/books/performance/1st_edition/html/JPAppGC.fm.html it seems they do ... regards Wojtek