Lines Matching refs:common

76 	zend_bool is_fake_closure = (func->common.fn_flags & ZEND_ACC_FAKE_CLOSURE) != 0;  in zend_valid_closure_binding()
78 if (func->common.fn_flags & ZEND_ACC_STATIC) { in zend_valid_closure_binding()
83 if (is_fake_closure && func->common.scope && in zend_valid_closure_binding()
84 !instanceof_function(Z_OBJCE_P(newthis), func->common.scope)) { in zend_valid_closure_binding()
87 ZSTR_VAL(func->common.scope->name), in zend_valid_closure_binding()
88 ZSTR_VAL(func->common.function_name), in zend_valid_closure_binding()
92 } else if (is_fake_closure && func->common.scope in zend_valid_closure_binding()
93 && !(func->common.fn_flags & ZEND_ACC_STATIC)) { in zend_valid_closure_binding()
97 && (func->common.fn_flags & ZEND_ACC_USES_THIS)) { in zend_valid_closure_binding()
102 if (scope && scope != func->common.scope && scope->type == ZEND_INTERNAL_CLASS) { in zend_valid_closure_binding()
109 if (is_fake_closure && scope != func->common.scope) { in zend_valid_closure_binding()
110 if (func->common.scope == NULL) { in zend_valid_closure_binding()
148 if (closure->func.common.fn_flags & ZEND_ACC_GENERATOR) { in ZEND_METHOD()
155 my_function.common.fn_flags &= ~ZEND_ACC_CLOSURE; in ZEND_METHOD()
157 my_function.common.scope = Z_OBJCE_P(newthis); in ZEND_METHOD()
165 && (closure->func.common.scope != Z_OBJCE_P(newthis) in ZEND_METHOD()
166 || (closure->func.common.fn_flags & ZEND_ACC_HEAP_RT_CACHE))) { in ZEND_METHOD()
192 if (fci_cache.function_handler->common.fn_flags & ZEND_ACC_GENERATOR) { in ZEND_METHOD()
196 && (fci_cache.function_handler->common.fn_flags & ZEND_ACC_HEAP_RT_CACHE)) { in ZEND_METHOD()
211 ce = closure->func.common.scope; in do_closure_bind()
282 ZVAL_STR(&fci.params[0], EX(func)->common.function_name); in ZEND_NAMED_FUNCTION()
310 if (mptr->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) { in zend_create_closure_from_callable()
313 && zend_string_equals_literal(mptr->common.function_name, "__invoke")) { in zend_create_closure_from_callable()
319 if (!mptr->common.scope) { in zend_create_closure_from_callable()
322 if (mptr->common.fn_flags & ZEND_ACC_STATIC) { in zend_create_closure_from_callable()
323 if (!mptr->common.scope->__callstatic) { in zend_create_closure_from_callable()
327 if (!mptr->common.scope->__call) { in zend_create_closure_from_callable()
334 call.fn_flags = mptr->common.fn_flags & ZEND_ACC_STATIC; in zend_create_closure_from_callable()
336 call.function_name = mptr->common.function_name; in zend_create_closure_from_callable()
337 call.scope = mptr->common.scope; in zend_create_closure_from_callable()
345 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, &instance); in zend_create_closure_from_callable()
347 zend_create_fake_closure(return_value, mptr, mptr->common.scope, fcc.called_scope, NULL); in zend_create_closure_from_callable()
402 invoke->common = closure->func.common; in zend_get_closure_invoke_method()
410 ZEND_ACC_PUBLIC | ZEND_ACC_CALL_VIA_HANDLER | (closure->func.common.fn_flags & keep_flags); in zend_get_closure_invoke_method()
411 …if (closure->func.type != ZEND_INTERNAL_FUNCTION || (closure->func.common.fn_flags & ZEND_ACC_USER… in zend_get_closure_invoke_method()
492 zend_string_release(closure->func.common.function_name); in zend_closure_free_storage()
521 closure->func.common.scope, closure->called_scope, &closure->this_ptr); in zend_closure_clone()
547 struct _zend_arg_info *arg_info = closure->func.common.arg_info; in zend_closure_get_debug_info()
549 …zend_bool zstr_args = (closure->func.type == ZEND_USER_FUNCTION) || (closure->func.common.fn_flags… in zend_closure_get_debug_info()
590 (closure->func.common.num_args || in zend_closure_get_debug_info()
591 (closure->func.common.fn_flags & ZEND_ACC_VARIADIC))) { in zend_closure_get_debug_info()
592 uint32_t i, num_args, required = closure->func.common.required_num_args; in zend_closure_get_debug_info()
596 num_args = closure->func.common.num_args; in zend_closure_get_debug_info()
597 if (closure->func.common.fn_flags & ZEND_ACC_VARIADIC) { in zend_closure_get_debug_info()
701 closure->func.common.fn_flags |= ZEND_ACC_CLOSURE; in zend_create_closure()
702 closure->func.common.fn_flags &= ~ZEND_ACC_IMMUTABLE; in zend_create_closure()
713 || func->common.scope != scope in zend_create_closure()
714 || (func->common.fn_flags & ZEND_ACC_HEAP_RT_CACHE) in zend_create_closure()
719 && (func->common.fn_flags & ZEND_ACC_CLOSURE) in zend_create_closure()
720 && (func->common.scope == scope || in zend_create_closure()
721 !(func->common.fn_flags & ZEND_ACC_IMMUTABLE))) { in zend_create_closure()
724 if (func->common.scope != scope) { in zend_create_closure()
725 func->common.scope = scope; in zend_create_closure()
747 closure->func.common.fn_flags |= ZEND_ACC_CLOSURE; in zend_create_closure()
758 if (!func->common.scope) { in zend_create_closure()
768 closure->func.common.scope = scope; in zend_create_closure()
771 closure->func.common.fn_flags |= ZEND_ACC_PUBLIC; in zend_create_closure()
772 …if (this_ptr && Z_TYPE_P(this_ptr) == IS_OBJECT && (closure->func.common.fn_flags & ZEND_ACC_STATI… in zend_create_closure()
786 closure->func.common.fn_flags |= ZEND_ACC_FAKE_CLOSURE; in zend_create_fake_closure()