com php-src: Fixed refcounting: ext/spl/spl_iterators.c
| From: | Dmitry Stogov | Date: | Fri, 21 Mar 2014 20:00:20 +0000 |
| Subject: | com php-src: Fixed refcounting: ext/spl/spl_iterators.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77562@lists.php.net to get a copy of this message | ||
Commit: 6da4759769d198b4c639ebc4a15ce8cc11472e92
Author: Dmitry Stogov <dmitry@zend.com> Sat, 22 Mar 2014 00:00:20 +0400
Parents: c36294c4daa419d6e31f1deb47ab2009bdd3fa3a
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6da4759769d198b4c639ebc4a15ce8cc11472e92
Log:
Fixed refcounting
Changed paths:
M ext/spl/spl_iterators.c
Diff:
diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c
index f424491..0857fd5 100644
--- a/ext/spl/spl_iterators.c
+++ b/ext/spl/spl_iterators.c
@@ -332,7 +332,7 @@ next_step:
}
object->iterators = erealloc(object->iterators, sizeof(spl_sub_iterator) *
(++object->level+1));
sub_iter = ce->get_iterator(ce, &child, 0 TSRMLS_CC);
- ZVAL_COPY(&object->iterators[object->level].zobject, &child);
+ ZVAL_COPY_VALUE(&object->iterators[object->level].zobject, &child);
object->iterators[object->level].iterator = sub_iter;
object->iterators[object->level].ce = ce;
object->iterators[object->level].state = RS_START;