From: Dmitry Stogov Date: Fri, 21 Mar 2014 21:13:15 +0000 (+0400) Subject: Fixed refcounting X-Git-Tag: POST_PHPNG_MERGE~412^2~237 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e91c5a58630b3e5e7ac5d6f70d299f400b2fee5;p=php Fixed refcounting --- diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 0857fd5c9f..522049be43 100644 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -1452,9 +1452,9 @@ static spl_dual_it_object* spl_dual_it_construct(INTERNAL_FUNCTION_PARAMETERS, z zend_restore_error_handling(&error_handling TSRMLS_CC); return NULL; } - ZVAL_COPY_VALUE(zobject, &retval); + zobject = &retval; ce = Z_OBJCE_P(zobject); - //??? inc_refcount = 0; + inc_refcount = 0; } } break;