At 01:34 PM 2/13/2002 -0600, Jason Greene wrote:
>Yes I do realize that the function would copy the value; however, I
>would think the output before and after $obj->do_something would be
>equal The problem I was mainly refering to is the reference count of
>the properties elements. Why would it g
On Wed, 2002-02-13 at 12:24, Andi Gutmans wrote:
> >$obj=new test();
>
> $obj == is_ref=1/refcount=1
>
> >debug_zval_dump($obj);
>
> You are passing $obj by value. So inside the debug_zval_dump() it will be
> is_ref=0/refcount=1 (it will be copied).
>
>
> >$obj->do_something();
>
> Inside d