[PHP-DEV] Re: Bug in current Object Model

2002-02-13 Thread Andi Gutmans
I don't think it's a bug. This weird behavior is due to the Engine 1 object model (which will be different in Engine 2). At 07:38 PM 2/12/2002 -0600, Jason Greene wrote: Zeev, Andi It appears that the bug we talked about in private correspondence does not just apply to object overloading. It

Re: [PHP-DEV] Re: Bug in current Object Model

2002-02-13 Thread Jason Greene
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 do_something it

Re: [PHP-DEV] Re: Bug in current Object Model

2002-02-13 Thread Andi Gutmans
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 grow