diff options
author | Xinchen Hui <laruence@php.net> | 2014-06-28 20:53:32 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2014-06-28 20:53:32 +0800 |
commit | e328e890ac0030714011df9e3bd55824bbbbd493 (patch) | |
tree | 72db27151c1814a924347e0ce6af8d1bde8eb040 | |
parent | b53bc5c7623db88ba3a2f58c397c06e36e9cad5d (diff) | |
download | php-git-e328e890ac0030714011df9e3bd55824bbbbd493.tar.gz |
Fixed add_ref
-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 9e1820ccac..80f2a623b2 100644 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -3460,7 +3460,7 @@ static int spl_iterator_to_array_apply(zend_object_iterator *iter, void *puser T array_set_zval_key(Z_ARRVAL_P(return_value), &key, data TSRMLS_CC); zval_dtor(&key); } else { - Z_ADDREF_P(data); + Z_TRY_ADDREF_P(data); add_next_index_zval(return_value, data); } return ZEND_HASH_APPLY_KEEP; |