zval_copy_ctor( )

Author Topic: zval_copy_ctor( )  (Read 530 times)

Offline beingchinmayTopic starter

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 73
  • Karma: 0
  • Gender: Male
  • I am Chinmay
    • Fat Cutter
zval_copy_ctor( )
« 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