Seo Forum

Coding & Programming => Programming Forum => Topic started by: beingchinmay on 08-10-2016, 04:37:44

Title: zval_copy_ctor( )
Post by: beingchinmay on 08-10-2016, 04:37:44
If you just want to make a deep copy directly and manage your own reference counts, you can call the zval_copy_ctor( ) function directly.

For example:


Quote
zval **old, *new;
*new = **old;
zval_copy_ctor(new);

Here old is a populated zval container; for example, a container passed to a function that we want to modify