[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.

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 that

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 just break

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 still