Re: Zend bug? Overloading API in PHP4

From: Date: Fri, 15 Aug 2003 22:38:19 +0000
Subject: Re: Zend bug? Overloading API in PHP4
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-4010@lists.php.net to get a copy of this message
On Sat, 16 Aug 2003, Zeev Suraski wrote: > You can't (reliably) connect to zval's that are passed to the setter > callback in ZE1, as they're not necessarily reference counted. If you want > to retain them, you have to duplicate them (using zval_copy_ctor()). > array(1,2,3) is a temporary value that is destroyed regardless of its > reference count. But where do I copy it? As soon as I enter my _set function before I do anything, the passed zval is bogus. -Rasmus

« previous php.internals (#4010) next »