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 the reference. Correct me if I'm wrong *chuckle*

What if I did

$objectFoo = new MyObject;
$objectFee = $objectFoo;

unset($objectFoo);

essentially, does PHP make a (deep|shallow) copy of an object in this 
reassignment, or is it just creating a new reference?


Erik




----

Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to