Re: Re[2]: [PHP-DEV] Weak references in PHP

From: Date: Fri, 28 Feb 2003 17:56:33 +0000
Subject: Re: Re[2]: [PHP-DEV] Weak references in PHP
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-94687@lists.php.net to get a copy of this message
Using __destruct method (thanks to George) it may be possible to implement what I need, but only if object cache is implemented in C (and so is not visible for PHP garbage collector). So no pure PHP solution exits. Unfortunately I didn't fins any reference to __destruct method in PHP manual and do not understand how it works. If I just declare __destruct method in class, it is not invoked when object is destructed.
It's in ZE2 have a look at Zend/ZEND_CHANGES in the source tree for details (you'll need to be running php5/HEAD). And it's a userland method, so the cache can be implemented in PHP.

« previous php.dev (#94687) next »