Re: [PHP-DEV] get_property_ptr_ptr handler

2005-01-27 Thread Andrei Zmievski
On Thu, 27 Jan 2005, Andi Gutmans wrote: > I'm not sure what you mean by passing by reference. If you want to do real > by reference work then you have to use object proxies and ->set() ->get() > callbacks. In general, the semantics of by reference is mainly designed for > regular PHP objects an

Re: [PHP-DEV] get_property_ptr_ptr handler

2005-01-27 Thread Andi Gutmans
At 03:53 PM 1/27/2005 -0800, Andrei Zmievski wrote: On Thu, 27 Jan 2005, Andi Gutmans wrote: > In general it's not useful. It exists so that regular PHP objects can be > optimized to use zval ** and not read/write property callbacks. This is > faster for example if you're doing increment. However,

Re: [PHP-DEV] get_property_ptr_ptr handler

2005-01-27 Thread Andrei Zmievski
On Thu, 27 Jan 2005, Andi Gutmans wrote: > In general it's not useful. It exists so that regular PHP objects can be > optimized to use zval ** and not read/write property callbacks. This is > faster for example if you're doing increment. However, in most cases of > writing extensions I suggest r

Re: [PHP-DEV] get_property_ptr_ptr handler

2005-01-27 Thread Andi Gutmans
In general it's not useful. It exists so that regular PHP objects can be optimized to use zval ** and not read/write property callbacks. This is faster for example if you're doing increment. However, in most cases of writing extensions I suggest read/write property unless you are just wrapping