unsetting object references
| From: | Erik Price | Date: | Wed, 17 Apr 2002 19:55:05 +0000 |
| Subject: | unsetting object references | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93382@lists.php.net to get a copy of this message | ||
Hey, sorry to bother you all but I have another obscure question about objects in PHP (yes I really do care about the answer)...
I'm simply wondering if I unset() a reference to an object, whether or not it destroys that object, if there are other references to it that still exist.
$_SESSION['object'] = serialize($object);
(in another script:)
$object = unserialize($_SESSION['object']);
// do some stuff with $object
unset($object);
What's going on with my $_SESSION['object'] ?
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
pricee@hhbrown.com