diff --git a/language/predefined/weakreference.xml b/language/predefined/weakreference.xml
index 5cbe05558ea4..1dd70f732f7e 100644
--- a/language/predefined/weakreference.xml
+++ b/language/predefined/weakreference.xml
@@ -13,6 +13,11 @@
Weak references allow the programmer to retain a reference to an object which does not prevent
the object from being destroyed. They are useful for implementing cache like structures.
+ If the original object has been destroyed, &null; will be returned
+ when calling the WeakReference::get method.
+ The original object will be destroyed when the
+ refcount for it drops to zero;
+ creating weak references does not increase the refcount of the object being referenced.
WeakReferences cannot be serialized.
@@ -50,11 +55,16 @@
get());
+
unset($obj);
+
var_dump($weakref->get());
+
?>
]]>