diff options
Diffstat (limited to 'Zend/zend_closures.c')
-rw-r--r-- | Zend/zend_closures.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/zend_closures.c b/Zend/zend_closures.c index 3478ee6816..fb37bf2705 100644 --- a/Zend/zend_closures.c +++ b/Zend/zend_closures.c @@ -349,8 +349,7 @@ static HashTable *zend_closure_get_debug_info(zval *object, int *is_temp) /* {{{ if (closure->debug_info->u.v.nApplyCount == 0) { if (closure->func.type == ZEND_USER_FUNCTION && closure->func.op_array.static_variables) { HashTable *static_variables = closure->func.op_array.static_variables; - ZVAL_NEW_ARR(&val); - zend_array_dup(Z_ARRVAL(val), static_variables); + ZVAL_ARR(&val, zend_array_dup(static_variables)); zend_hash_str_update(closure->debug_info, "static", sizeof("static")-1, &val); } |