Lines Matching refs:common

74 	zend_bool is_fake_closure = (func->common.fn_flags & ZEND_ACC_FAKE_CLOSURE) != 0;  in zend_valid_closure_binding()
76 if (func->common.fn_flags & ZEND_ACC_STATIC) { in zend_valid_closure_binding()
81 if (is_fake_closure && func->common.scope && in zend_valid_closure_binding()
82 !instanceof_function(Z_OBJCE_P(newthis), func->common.scope)) { in zend_valid_closure_binding()
85 ZSTR_VAL(func->common.scope->name), in zend_valid_closure_binding()
86 ZSTR_VAL(func->common.function_name), in zend_valid_closure_binding()
90 } else if (!(func->common.fn_flags & ZEND_ACC_STATIC) && func->common.scope in zend_valid_closure_binding()
96 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding()
103 if (is_fake_closure && scope != func->common.scope) { in zend_valid_closure_binding()
150 if (fci_cache.function_handler->common.fn_flags & ZEND_ACC_GENERATOR) { in ZEND_METHOD()
158 my_function.common.scope = Z_OBJCE_P(newthis); in ZEND_METHOD()
162 if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope != Z_OBJCE_P(newthis)) { in ZEND_METHOD()
175 if (fci_cache.function_handler->common.fn_flags & ZEND_ACC_GENERATOR) { in ZEND_METHOD()
178 } else if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope != Z_OBJCE_P(newthis)) { in ZEND_METHOD()
206 ce = closure->func.common.scope; in ZEND_METHOD()
215 ce = closure->func.common.scope; in ZEND_METHOD()
244 fcc.function_handler = (zend_function *) EX(func)->common.arg_info; in zend_closure_call_magic()
247 ZVAL_STR(&fci.params[0], EX(func)->common.function_name); in zend_closure_call_magic()
273 if (mptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) { in zend_create_closure_from_callable()
278 call.function_name = mptr->common.function_name; in zend_create_closure_from_callable()
279 call.arg_info = (zend_internal_arg_info *) mptr->common.prototype; in zend_create_closure_from_callable()
280 call.scope = mptr->common.scope; in zend_create_closure_from_callable()
288 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, &instance); in zend_create_closure_from_callable()
290 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, NULL); in zend_create_closure_from_callable()
350 invoke->common = closure->func.common; in zend_get_closure_invoke_method()
358 ZEND_ACC_PUBLIC | ZEND_ACC_CALL_VIA_HANDLER | (closure->func.common.fn_flags & keep_flags); in zend_get_closure_invoke_method()
359 …if (closure->func.type != ZEND_INTERNAL_FUNCTION || (closure->func.common.fn_flags & ZEND_ACC_USER… in zend_get_closure_invoke_method()
470 closure->func.common.scope, closure->called_scope, &closure->this_ptr); in zend_closure_clone()
495 struct _zend_arg_info *arg_info = closure->func.common.arg_info; in zend_closure_get_debug_info()
497 …zend_bool zstr_args = (closure->func.type == ZEND_USER_FUNCTION) || (closure->func.common.fn_flags… in zend_closure_get_debug_info()
516 (closure->func.common.num_args || in zend_closure_get_debug_info()
517 (closure->func.common.fn_flags & ZEND_ACC_VARIADIC))) { in zend_closure_get_debug_info()
518 uint32_t i, num_args, required = closure->func.common.required_num_args; in zend_closure_get_debug_info()
522 num_args = closure->func.common.num_args; in zend_closure_get_debug_info()
523 if (closure->func.common.fn_flags & ZEND_ACC_VARIADIC) { in zend_closure_get_debug_info()
634 zend_closure *closure = (zend_closure*)EX(func)->common.prototype; in zend_closure_internal_handler()
657 closure->func.common.prototype = (zend_function*)closure; in zend_create_closure()
658 closure->func.common.fn_flags |= ZEND_ACC_CLOSURE; in zend_create_closure()
666 || func->common.scope != scope in zend_create_closure()
667 || (func->common.fn_flags & ZEND_ACC_NO_RT_ARENA) in zend_create_closure()
669 if (!func->op_array.run_time_cache && (func->common.fn_flags & ZEND_ACC_CLOSURE)) { in zend_create_closure()
672 func->common.scope = scope; in zend_create_closure()
687 closure->func.common.prototype = (zend_function*)closure; in zend_create_closure()
688 closure->func.common.fn_flags |= ZEND_ACC_CLOSURE; in zend_create_closure()
699 if (!func->common.scope) { in zend_create_closure()
709 closure->func.common.scope = scope; in zend_create_closure()
712 closure->func.common.fn_flags |= ZEND_ACC_PUBLIC; in zend_create_closure()
713 …if (this_ptr && Z_TYPE_P(this_ptr) == IS_OBJECT && (closure->func.common.fn_flags & ZEND_ACC_STATI… in zend_create_closure()
727 closure->func.common.fn_flags |= ZEND_ACC_FAKE_CLOSURE; in zend_create_fake_closure()