diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2014-03-22 02:40:41 +0400 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2014-03-22 02:40:41 +0400 |
| commit | f2a598393f6dbd88001f277843433a475915663b (patch) | |
| tree | 77e06f109d0e2a08ed92b3a1ee9ead820bd235f2 | |
| parent | 0e91c5a58630b3e5e7ac5d6f70d299f400b2fee5 (diff) | |
| download | php-git-f2a598393f6dbd88001f277843433a475915663b.tar.gz | |
Fixed wrong assignment
| -rw-r--r-- | ext/spl/spl_iterators.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 522049be43..76dc200ee8 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; |
