diff options
-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; |