Re: cvs: php4 /ext/standard array.c basic_functions.c php_array.h

From: Date: Mon, 22 Oct 2001 19:01:29 +0000
Subject: Re: cvs: php4 /ext/standard array.c basic_functions.c php_array.h
References: 1 2 3  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-7933@lists.php.net to get a copy of this message
At 01:39 PM 10/22/2001 -0500, Andrei Zmievski wrote:
On Mon, 22 Oct 2001, Rasmus Lerdorf wrote: Hrm. Code snippet? Do I need to build this zval myself or this there a convenience function for this one? Just do zval_add_ref() on the zval** you get from user as the init value.
Before you do that you should probably do: if (PZVAL_IS_REF(*zval)) {
        SEPARATE_ZVAL(zval);
} And then do all of the zval_add_ref(). If you can't be bothered then just make a duplicate the way you did and add references to that. It won't make a big difference. Andi

« previous php.cvs (#7933) next »