Could someone knowledgeable please remind me again: in what exact
circumstances is overriding get_property_ptr_ptr useful vs. leaving it
NULL?
- Andrei
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.
Andi
At 02:33 PM 1/27/2005 -0800, Andrei Zmievski wrote:
Could someone knowledgeable please remind me again: in what exact
circumstances is overriding get_property_ptr_ptr useful vs. leaving it
NULL?
- Andrei
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.
- Andrei