Hi Moriyoshi
Thanks for the advice!
"Moriyoshi Koizumi" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You should use zval_ptr_dtor() to dispose the old value. Note the old
> value won't actually be freed as long as any reference to the variable is
> alive.
>
--
PHP Development
You should use zval_ptr_dtor() to dispose the old value. Note the old
value won't actually be freed as long as any reference to the variable is
alive.
for example,
zval *ary1, *ary2;
/* $ary1 = array(); */
ALLOC_INIT_ZVAL(ary1);
array_init(ary1);
/* $ary2 = array(); */
ALLOC_INIT_ZVAL(ary2);