Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Fixed bug #52539 (Calling function from rebound Closure causes crash)

  • Loading branch information...
commit e10d33fe5a5faf756f1d1ef0161e03a689644461 1 parent 4f5ef36
@felipensp felipensp authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  Zend/zend_closures.c
View
1  Zend/zend_closures.c
@@ -416,6 +416,7 @@ ZEND_API void zend_create_closure(zval *res, zend_function *func, zend_class_ent
zend_hash_init(closure->func.op_array.static_variables, zend_hash_num_elements(static_variables), NULL, ZVAL_PTR_DTOR, 0);
zend_hash_apply_with_arguments(static_variables TSRMLS_CC, (apply_func_args_t)zval_copy_static_var, 1, closure->func.op_array.static_variables);
}
+ closure->func.op_array.run_time_cache = NULL;
(*closure->func.op_array.refcount)++;
} else {
/* verify that we aren't binding internal function to a wrong scope */
Please sign in to comment.
Something went wrong with that request. Please try again.