Lines Matching refs:func

39 	zend_function  func;  member
50 zend_function *func = EG(current_execute_data)->function_state.function; in ZEND_METHOD() local
68 efree((char*)func->internal_function.function_name); in ZEND_METHOD()
69 efree(func); in ZEND_METHOD()
87 if ((newthis != NULL) && (closure->func.common.fn_flags & ZEND_ACC_STATIC)) { in ZEND_METHOD()
91 if (newthis == NULL && !(closure->func.common.fn_flags & ZEND_ACC_STATIC) in ZEND_METHOD()
92 && closure->func.common.scope && closure->func.type == ZEND_INTERNAL_FUNCTION) { in ZEND_METHOD()
121 ce = closure->func.common.scope; in ZEND_METHOD()
133 ce = closure->func.common.scope; in ZEND_METHOD()
137 if (closure->func.type == ZEND_INTERNAL_FUNCTION && closure->func.common.scope != NULL) { in ZEND_METHOD()
138 if (ce && !instanceof_function(ce, closure->func.common.scope TSRMLS_CC)) { in ZEND_METHOD()
139 …Cannot bind function %s::%s to scope class %s", closure->func.common.scope->name, closure->func.co… in ZEND_METHOD()
142 if (ce && newthis && (closure->func.common.fn_flags & ZEND_ACC_STATIC) == 0 && in ZEND_METHOD()
143 !instanceof_function(Z_OBJCE_P(newthis), closure->func.common.scope TSRMLS_CC)) { in ZEND_METHOD()
144 …nternal method %s::%s() to object of class %s", closure->func.common.scope->name, closure->func.co… in ZEND_METHOD()
149 zend_create_closure(return_value, &closure->func, ce, newthis TSRMLS_CC); in ZEND_METHOD()
172 invoke->common = closure->func.common; in zend_get_closure_invoke_method()
175 ZEND_ACC_PUBLIC | ZEND_ACC_CALL_VIA_HANDLER | (closure->func.common.fn_flags & keep_flags); in zend_get_closure_invoke_method()
187 return &closure->func; in zend_get_closure_method_def()
258 if (closure->func.type == ZEND_USER_FUNCTION) { in zend_closure_free_storage()
261 if (ex->op_array == &closure->func.op_array) { in zend_closure_free_storage()
266 destroy_op_array(&closure->func.op_array TSRMLS_CC); in zend_closure_free_storage()
304 …zend_create_closure(&result, &closure->func, closure->func.common.scope, closure->this_ptr TSRMLS_… in zend_closure_clone()
318 *fptr_ptr = &closure->func; in zend_closure_get_closure()
329 *ce_ptr = closure->func.common.scope; in zend_closure_get_closure()
339 struct _zend_arg_info *arg_info = closure->func.common.arg_info; in zend_closure_get_debug_info()
348 if (closure->func.type == ZEND_USER_FUNCTION && closure->func.op_array.static_variables) { in zend_closure_get_debug_info()
349 HashTable *static_variables = closure->func.op_array.static_variables; in zend_closure_get_debug_info()
362 zend_uint i, required = closure->func.common.required_num_args; in zend_closure_get_debug_info()
367 for (i = 0; i < closure->func.common.num_args; i++) { in zend_closure_get_debug_info()
399 return (closure->func.type == ZEND_USER_FUNCTION) ? in zend_closure_get_gc()
400 closure->func.op_array.static_variables : NULL; in zend_closure_get_gc()
457 ZEND_API void zend_create_closure(zval *res, zend_function *func, zend_class_entry *scope, zval *th… in zend_create_closure() argument
465 closure->func = *func; in zend_create_closure()
466 closure->func.common.prototype = NULL; in zend_create_closure()
467 closure->func.common.fn_flags |= ZEND_ACC_CLOSURE; in zend_create_closure()
475 if (closure->func.type == ZEND_USER_FUNCTION) { in zend_create_closure()
476 if (closure->func.op_array.static_variables) { in zend_create_closure()
477 HashTable *static_variables = closure->func.op_array.static_variables; in zend_create_closure()
479 ALLOC_HASHTABLE(closure->func.op_array.static_variables); in zend_create_closure()
480 …zend_hash_init(closure->func.op_array.static_variables, zend_hash_num_elements(static_variables), … in zend_create_closure()
481 …variables TSRMLS_CC, (apply_func_args_t)zval_copy_static_var, 1, closure->func.op_array.static_var… in zend_create_closure()
483 closure->func.op_array.run_time_cache = NULL; in zend_create_closure()
484 (*closure->func.op_array.refcount)++; in zend_create_closure()
486 if (!func->common.scope) { in zend_create_closure()
497 closure->func.common.scope = scope; in zend_create_closure()
499 closure->func.common.fn_flags |= ZEND_ACC_PUBLIC; in zend_create_closure()
500 if (this_ptr && (closure->func.common.fn_flags & ZEND_ACC_STATIC) == 0) { in zend_create_closure()
504 closure->func.common.fn_flags |= ZEND_ACC_STATIC; in zend_create_closure()