From: Xinchen Hui Date: Sun, 16 Mar 2014 15:04:07 +0000 (+0800) Subject: Forgot fix similar issue in spl_recursive_it_get_method X-Git-Tag: POST_PHPNG_MERGE~412^2~296 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=639c4da20aa26f646d55b5a21f1a67ca7ef1dba1;p=php Forgot fix similar issue in spl_recursive_it_get_method --- diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c index 79a99d4097..55587c48af 100644 --- a/ext/spl/spl_iterators.c +++ b/ext/spl/spl_iterators.c @@ -845,7 +845,7 @@ static union _zend_function *spl_recursive_it_get_method(zval *object_ptr, zend_ if (!function_handler) { if ((function_handler = zend_hash_find_ptr(&Z_OBJCE_P(zobj)->function_table, method)) == NULL) { if (Z_OBJ_HT_P(zobj)->get_method) { - *object_ptr = *zobj; + ZVAL_COPY_VALUE(object_ptr, zobj); function_handler = Z_OBJ_HT_P(object_ptr)->get_method(object_ptr, method, key TSRMLS_CC); } }