com php-src: Fixed wrong assignment: ext/spl/spl_iterators. c
| From: | Dmitry Stogov | Date: | Fri, 21 Mar 2014 22:40:41 +0000 |
| Subject: | com php-src: Fixed wrong assignment: ext/spl/spl_iterators. c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77583@lists.php.net to get a copy of this message | ||
Commit: f2a598393f6dbd88001f277843433a475915663b
Author: Dmitry Stogov <dmitry@zend.com> Sat, 22 Mar 2014 02:40:41 +0400
Parents: 0e91c5a58630b3e5e7ac5d6f70d299f400b2fee5
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f2a598393f6dbd88001f277843433a475915663b
Log:
Fixed wrong assignment
Changed paths:
M ext/spl/spl_iterators.c
Diff:
diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c
index 522049b..76dc200 100644
--- a/ext/spl/spl_iterators.c
+++ b/ext/spl/spl_iterators.c
@@ -478,7 +478,7 @@ static void spl_recursive_it_it_construct(INTERNAL_FUNCTION_PARAMETERS, zend_cla
if (inc_refcount == 0 && iterator) {
zval_ptr_dtor(iterator);
}
- *iterator = caching_it;
+ iterator = &caching_it;
inc_refcount = 0;
} else {
iterator = NULL;