Hi, On Wed, Apr 25, 2012 at 01:25, Yader Hernandez <yader.hernan...@gmail.com> wrote: > Hello, > > In the extension I'm currently working on, I call add_index_zval and on > success, I call Z_ADDREF_P on the new zval. > > When I'm freeing everything, I need to remove the ref count. Digging > through the source code, I found Z_DELREF_P. Would this be the correct > macro to call? Is there anything else to keep in mind when calling it?
You should use zval_ptr_dtor instead. it will delref and free in case the refcount hits 0. Best, > > thx -- Etienne Kneuss http://www.colder.ch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php