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

2003-02-28 Thread Konstantin Knizhnik
Hello George, Friday, February 28, 2003, 5:46:18 PM, you wrote: >> Can anybody tell me if such features are available in PHP (I failed to >> find >> them myself). GS> Look at __destruct method for classes in ZE2. They wopn't tell you the GS> reference count, but the do get called when the ref

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

2003-02-28 Thread Konstantin Knizhnik
ly hold the AG> objects which are retrieve by the script. At the end of the request it'll AG> persist the changes and will free the objects. Why would you want them to AG> be destroyed during the request? AG> Andi AG> At 02:39 PM 2/28/2003 +0300, Konstantin Knizhnik wrote: &

[PHP-DEV] Weak references in PHP

2003-02-28 Thread Konstantin Knizhnik
To be able to implmenet interface of object-oriented database to PHP I need to have object cache which will map persistent object identifier (OPID) to loaded instance of the object. This cache should be "weak", i.e. it should not prevent garbage collection from deallocating unused instances of peri