Re: [PHP] unsetting object references

2002-04-17 Thread Robert Cummings
Erik Price wrote: > > On Wednesday, April 17, 2002, at 03:59 PM, Robert Cummings wrote: > > > Now if what you meant was the following: > > > > $objectFoo = new MyObject(); > > $objectFee = &$objectFoo; > > > > unset( $objectFoo ); > > > > Then the object shouldn't be deleted since $objectFee is

Re: [PHP] unsetting object references

2002-04-17 Thread Erik Price
On Wednesday, April 17, 2002, at 03:59 PM, Robert Cummings wrote: > Now if what you meant was the following: > > $objectFoo = new MyObject(); > $objectFee = &$objectFoo; > > unset( $objectFoo ); > > Then the object shouldn't be deleted since $objectFee is still > referencing > it. You will jus

Re: [PHP] unsetting object references

2002-04-17 Thread Robert Cummings
Erik Price wrote: > > 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 t

[PHP] unsetting object references

2002-04-17 Thread Erik Price
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