Su zend.com c'è scritto:
"...When the last reference to an object is destroyed the object's destructor, which is a class method named __destruct() that receives no parameters, is called before the object is freed from memory..."
www.zend.com/manual/migration5.oop.php
Quindi l'oggetto verrebbe distrutto non appena si perde l'ultimo riferimento ad esso!

Rispondi quotando