Re: get_property_ptr_ptr handler
| From: | Andrei Zmievski | Date: | Fri, 28 Jan 2005 00:23:56 +0000 |
| Subject: | Re: get_property_ptr_ptr handler | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14444@lists.php.net to get a copy of this message | ||
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 and zval **'s (i.e. PHP values).
I tried passing my property to a function that accepts parameter by
reference, and the modifying it inside the function. The value was
changed on the outside as well.
- Andrei