Browse Source

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

experimental/with_scalar_types
Felipe Pena 16 years ago
parent
commit
e10d33fe5a
  1. 1
      Zend/zend_closures.c

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 */

Loading…
Cancel
Save