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, in most cases of
> writing extensions I suggest read/write property unless you are just
> wrapping zval *'s.

If passing those properties by reference to functions works, perfect.
I'll NULL it out then.

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 and zval **'s (i.e. PHP values).


Andi

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to