Lines Matching refs:common

81 		if (func->common.fn_flags & ZEND_ACC_STATIC) {  in zend_valid_closure_binding()
86 if (func->type == ZEND_INTERNAL_FUNCTION && func->common.scope && in zend_valid_closure_binding()
87 !instanceof_function(Z_OBJCE_P(newthis), func->common.scope)) { in zend_valid_closure_binding()
90 ZSTR_VAL(func->common.scope->name), in zend_valid_closure_binding()
91 ZSTR_VAL(func->common.function_name), in zend_valid_closure_binding()
95 } else if (!(func->common.fn_flags & ZEND_ACC_STATIC) && func->common.scope in zend_valid_closure_binding()
101 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding()
108 if ((func->common.fn_flags & ZEND_ACC_FAKE_CLOSURE) && scope != func->common.scope) { in zend_valid_closure_binding()
155 if (fci_cache.function_handler->common.fn_flags & ZEND_ACC_GENERATOR) { in ZEND_METHOD()
163 my_function.common.scope = Z_OBJCE_P(newthis); in ZEND_METHOD()
167 if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope != Z_OBJCE_P(newthis)) { in ZEND_METHOD()
177 if (fci_cache.function_handler->common.fn_flags & ZEND_ACC_GENERATOR) { in ZEND_METHOD()
180 } else if (ZEND_USER_CODE(my_function.type) && closure->func.common.scope != Z_OBJCE_P(newthis)) { in ZEND_METHOD()
208 ce = closure->func.common.scope; in ZEND_METHOD()
217 ce = closure->func.common.scope; in ZEND_METHOD()
234 …if (ZEND_USER_CODE(closure->func.type) && (closure->func.common.scope != new_closure->func.common.… in ZEND_METHOD()
263 invoke->common = closure->func.common; in zend_get_closure_invoke_method()
271 ZEND_ACC_PUBLIC | ZEND_ACC_CALL_VIA_HANDLER | (closure->func.common.fn_flags & keep_flags); in zend_get_closure_invoke_method()
272 …if (closure->func.type != ZEND_INTERNAL_FUNCTION || (closure->func.common.fn_flags & ZEND_ACC_USER… in zend_get_closure_invoke_method()
383 closure->func.common.scope, closure->called_scope, &closure->this_ptr); in zend_closure_clone()
415 struct _zend_arg_info *arg_info = closure->func.common.arg_info; in zend_closure_get_debug_info()
417 …zend_bool zstr_args = (closure->func.type == ZEND_USER_FUNCTION) || (closure->func.common.fn_flags… in zend_closure_get_debug_info()
436 (closure->func.common.num_args || in zend_closure_get_debug_info()
437 (closure->func.common.fn_flags & ZEND_ACC_VARIADIC))) { in zend_closure_get_debug_info()
438 uint32_t i, num_args, required = closure->func.common.required_num_args; in zend_closure_get_debug_info()
442 num_args = closure->func.common.num_args; in zend_closure_get_debug_info()
443 if (closure->func.common.fn_flags & ZEND_ACC_VARIADIC) { in zend_closure_get_debug_info()
550 zend_closure *closure = (zend_closure*)EX(func)->common.prototype; in zend_closure_internal_handler()
573 closure->func.common.prototype = (zend_function*)closure; in zend_create_closure()
574 closure->func.common.fn_flags |= ZEND_ACC_CLOSURE; in zend_create_closure()
591 closure->func.common.prototype = (zend_function*)closure; in zend_create_closure()
592 closure->func.common.fn_flags |= ZEND_ACC_CLOSURE; in zend_create_closure()
603 if (!func->common.scope) { in zend_create_closure()
613 closure->func.common.scope = scope; in zend_create_closure()
616 closure->func.common.fn_flags |= ZEND_ACC_PUBLIC; in zend_create_closure()
617 …if (this_ptr && Z_TYPE_P(this_ptr) == IS_OBJECT && (closure->func.common.fn_flags & ZEND_ACC_STATI… in zend_create_closure()
631 closure->func.common.fn_flags |= ZEND_ACC_FAKE_CLOSURE; in zend_create_fake_closure()