
Druckansicht von http://www.php-homepage.de/manual/class.weakref.php
The WeakRef class(PECL weakref >= 0.1.0) EinführungThe WeakRef class provides a gateway to objects without preventing the garbage collector from freeing those objects. It also provides a way to turn a weak reference into a strong one. Klassenbeschreibung
WeakRef
{
/* Methoden */
}Beispiele
Beispiel #1 WeakRef usage example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
Object still exists!
object(MyClass)#1 (0) {
}
Destroying object!
Object is dead!
Inhaltsverzeichnis
|