]> granicus.if.org Git - php/commit
Use zval_ptr_dtor() to free variables as soon as they hit refcount of 0.
authorZeev Suraski <zeev@php.net>
Sun, 15 Feb 2004 12:58:19 +0000 (12:58 +0000)
committerZeev Suraski <zeev@php.net>
Sun, 15 Feb 2004 12:58:19 +0000 (12:58 +0000)
commit7c710a9f9bb65f90d35bdb88d2bc70df1f03b81c
treefd700bd09f894c07b111c8b7f50c8d6f59da1ef8
parenta2e1844de9d2584769fbd4a06e7b67e418919198
Use zval_ptr_dtor() to free variables as soon as they hit refcount of 0.

Note:  You should not be using ZVAL_DELREF() in day to day usage.  Instead,
       you should use zval_ptr_dtor().  Use ZVAL_DELREF() only if you're
       messing with the refcount directly and know what you're doing.
Note #2:  For clarity, if you want to initialize a new zval with a refcount
          of 0, it's best to do that directly, instead of using ZVAL_DELREF
          after allocating the zval...
ext/com_dotnet/com_saproxy.c
ext/libxml/libxml.c
ext/mysqli/mysqli.c
ext/session/session.c