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);
Hi,
I'm porting some PHP code to C, and was hoping that someone can help me.
I have 2 variables $oldarray and $newarray that both hold arrays and want
to set
$oldarray = $newarray;
I suppose i have to dispose of $oldarray before i set it to $newarray. I'm
not sure what is the best way, so i