Lines Matching refs:common

69 	zend_bool is_fake_closure = (func->common.fn_flags & ZEND_ACC_FAKE_CLOSURE) != 0;  in zend_valid_closure_binding()
71 if (func->common.fn_flags & ZEND_ACC_STATIC) { in zend_valid_closure_binding()
76 if (is_fake_closure && func->common.scope && in zend_valid_closure_binding()
77 !instanceof_function(Z_OBJCE_P(newthis), func->common.scope)) { in zend_valid_closure_binding()
80 ZSTR_VAL(func->common.scope->name), in zend_valid_closure_binding()
81 ZSTR_VAL(func->common.function_name), in zend_valid_closure_binding()
85 } else if (!(func->common.fn_flags & ZEND_ACC_STATIC) && func->common.scope in zend_valid_closure_binding()
91 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding()
98 if (is_fake_closure && scope != func->common.scope) { in zend_valid_closure_binding()
134 if (closure->func.common.fn_flags & ZEND_ACC_GENERATOR) { in ZEND_METHOD()
141 my_function.common.fn_flags &= ~ZEND_ACC_CLOSURE; in ZEND_METHOD()
143 my_function.common.scope = Z_OBJCE_P(newthis); in ZEND_METHOD()
147 if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope != Z_OBJCE_P(newthis)) { in ZEND_METHOD()
168 if (fci_cache.function_handler->common.fn_flags & ZEND_ACC_GENERATOR) { in ZEND_METHOD()
171 } else if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope != Z_OBJCE_P(newthis)) { in ZEND_METHOD()
200 ce = closure->func.common.scope; in ZEND_METHOD()
209 ce = closure->func.common.scope; in ZEND_METHOD()
241 ZVAL_STR(&fci.params[0], EX(func)->common.function_name); in ZEND_NAMED_FUNCTION()
270 if (mptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) { in zend_create_closure_from_callable()
273 && zend_string_equals_literal(mptr->common.function_name, "__invoke")) { in zend_create_closure_from_callable()
282 call.fn_flags = mptr->common.fn_flags & ZEND_ACC_STATIC; in zend_create_closure_from_callable()
284 call.function_name = mptr->common.function_name; in zend_create_closure_from_callable()
285 call.scope = mptr->common.scope; in zend_create_closure_from_callable()
293 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, &instance); in zend_create_closure_from_callable()
295 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, NULL); in zend_create_closure_from_callable()
355 invoke->common = closure->func.common; in zend_get_closure_invoke_method()
363 ZEND_ACC_PUBLIC | ZEND_ACC_CALL_VIA_HANDLER | (closure->func.common.fn_flags & keep_flags); in zend_get_closure_invoke_method()
364 …if (closure->func.type != ZEND_INTERNAL_FUNCTION || (closure->func.common.fn_flags & ZEND_ACC_USER… in zend_get_closure_invoke_method()
475 closure->func.common.scope, closure->called_scope, &closure->this_ptr); in zend_closure_clone()
500 struct _zend_arg_info *arg_info = closure->func.common.arg_info; in zend_closure_get_debug_info()
502 …zend_bool zstr_args = (closure->func.type == ZEND_USER_FUNCTION) || (closure->func.common.fn_flags… in zend_closure_get_debug_info()
527 (closure->func.common.num_args || in zend_closure_get_debug_info()
528 (closure->func.common.fn_flags & ZEND_ACC_VARIADIC))) { in zend_closure_get_debug_info()
529 uint32_t i, num_args, required = closure->func.common.required_num_args; in zend_closure_get_debug_info()
533 num_args = closure->func.common.num_args; in zend_closure_get_debug_info()
534 if (closure->func.common.fn_flags & ZEND_ACC_VARIADIC) { in zend_closure_get_debug_info()
668 closure->func.common.fn_flags |= ZEND_ACC_CLOSURE; in zend_create_closure()
669 closure->func.common.fn_flags &= ~ZEND_ACC_IMMUTABLE; in zend_create_closure()
677 || func->common.scope != scope in zend_create_closure()
678 || (func->common.fn_flags & ZEND_ACC_NO_RT_ARENA) in zend_create_closure()
681 && (func->common.fn_flags & ZEND_ACC_CLOSURE) in zend_create_closure()
682 && !(func->common.fn_flags & ZEND_ACC_IMMUTABLE)) { in zend_create_closure()
685 func->common.scope = scope; in zend_create_closure()
700 closure->func.common.fn_flags |= ZEND_ACC_CLOSURE; in zend_create_closure()
711 if (!func->common.scope) { in zend_create_closure()
721 closure->func.common.scope = scope; in zend_create_closure()
724 closure->func.common.fn_flags |= ZEND_ACC_PUBLIC; in zend_create_closure()
725 …if (this_ptr && Z_TYPE_P(this_ptr) == IS_OBJECT && (closure->func.common.fn_flags & ZEND_ACC_STATI… in zend_create_closure()
739 closure->func.common.fn_flags |= ZEND_ACC_FAKE_CLOSURE; in zend_create_fake_closure()