Lines Matching refs:common

78 		new_function->common.fn_flags |= ZEND_ACC_ARENA_ALLOCATED;  in zend_duplicate_internal_function()
80 if (EXPECTED(new_function->common.function_name)) { in zend_duplicate_internal_function()
81 zend_string_addref(new_function->common.function_name); in zend_duplicate_internal_function()
192 if (parent->constructor && UNEXPECTED(parent->constructor->common.fn_flags & ZEND_ACC_FINAL)) { in do_inherit_parent_constructor()
194 ZSTR_VAL(parent->name), ZSTR_VAL(parent->constructor->common.function_name), in do_inherit_parent_constructor()
195 ZSTR_VAL(ce->name), ZSTR_VAL(ce->constructor->common.function_name)); in do_inherit_parent_constructor()
555 ZEND_ASSERT(!((fe->common.fn_flags & ZEND_ACC_CTOR) in zend_do_perform_implementation_check()
556 && ((proto->common.scope->ce_flags & ZEND_ACC_INTERFACE) == 0 in zend_do_perform_implementation_check()
557 && (proto->common.fn_flags & ZEND_ACC_ABSTRACT) == 0))); in zend_do_perform_implementation_check()
561 ZEND_ASSERT(!(proto->common.fn_flags & ZEND_ACC_PRIVATE) in zend_do_perform_implementation_check()
562 || (proto->common.fn_flags & ZEND_ACC_ABSTRACT)); in zend_do_perform_implementation_check()
565 if (proto->common.required_num_args < fe->common.required_num_args) { in zend_do_perform_implementation_check()
570 if ((proto->common.fn_flags & ZEND_ACC_RETURN_REFERENCE) in zend_do_perform_implementation_check()
571 && !(fe->common.fn_flags & ZEND_ACC_RETURN_REFERENCE)) { in zend_do_perform_implementation_check()
575 proto_is_variadic = (proto->common.fn_flags & ZEND_ACC_VARIADIC) != 0; in zend_do_perform_implementation_check()
576 fe_is_variadic = (fe->common.fn_flags & ZEND_ACC_VARIADIC) != 0; in zend_do_perform_implementation_check()
584 proto_num_args = proto->common.num_args + proto_is_variadic; in zend_do_perform_implementation_check()
585 fe_num_args = fe->common.num_args + fe_is_variadic; in zend_do_perform_implementation_check()
591 i < proto_num_args ? &proto->common.arg_info[i] : in zend_do_perform_implementation_check()
592 proto_is_variadic ? &proto->common.arg_info[proto_num_args - 1] : NULL; in zend_do_perform_implementation_check()
594 i < fe_num_args ? &fe->common.arg_info[i] : in zend_do_perform_implementation_check()
595 fe_is_variadic ? &fe->common.arg_info[fe_num_args - 1] : NULL; in zend_do_perform_implementation_check()
626 if (proto->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_do_perform_implementation_check()
628 if (!(fe->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE)) { in zend_do_perform_implementation_check()
633 fe_scope, fe->common.arg_info[-1].type, in zend_do_perform_implementation_check()
634 proto_scope, proto->common.arg_info[-1].type); in zend_do_perform_implementation_check()
672 if (fptr->common.scope) { in zend_get_function_declaration()
674 …smart_str_appendl(&str, ZSTR_VAL(fptr->common.scope->name), strlen(ZSTR_VAL(fptr->common.scope->na… in zend_get_function_declaration()
678 smart_str_append(&str, fptr->common.function_name); in zend_get_function_declaration()
681 if (fptr->common.arg_info) { in zend_get_function_declaration()
683 zend_arg_info *arg_info = fptr->common.arg_info; in zend_get_function_declaration()
685 required = fptr->common.required_num_args; in zend_get_function_declaration()
686 num_args = fptr->common.num_args; in zend_get_function_declaration()
687 if (fptr->common.fn_flags & ZEND_ACC_VARIADIC) { in zend_get_function_declaration()
782 if (fptr->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_get_function_declaration()
784 zend_append_type_hint(&str, scope, fptr->common.arg_info - 1, 1); in zend_get_function_declaration()
793 return fn->common.type == ZEND_USER_FUNCTION ? fn->op_array.line_start : 0; in func_lineno()
846 uint32_t parent_flags = parent->common.fn_flags; in do_inheritance_check_on_method_ex()
851 child->common.fn_flags |= ZEND_ACC_CHANGED; in do_inheritance_check_on_method_ex()
863 ZEND_FN_SCOPE_NAME(parent), ZSTR_VAL(child->common.function_name)); in do_inheritance_check_on_method_ex()
866 child_flags = child->common.fn_flags; in do_inheritance_check_on_method_ex()
876 ZEND_FN_SCOPE_NAME(parent), ZSTR_VAL(child->common.function_name), ZEND_FN_SCOPE_NAME(child)); in do_inheritance_check_on_method_ex()
880 ZEND_FN_SCOPE_NAME(parent), ZSTR_VAL(child->common.function_name), ZEND_FN_SCOPE_NAME(child)); in do_inheritance_check_on_method_ex()
891 ZEND_FN_SCOPE_NAME(parent), ZSTR_VAL(child->common.function_name), ZEND_FN_SCOPE_NAME(child)); in do_inheritance_check_on_method_ex()
895 child->common.fn_flags |= ZEND_ACC_CHANGED; in do_inheritance_check_on_method_ex()
898 proto = parent->common.prototype ? in do_inheritance_check_on_method_ex()
899 parent->common.prototype : parent; in do_inheritance_check_on_method_ex()
904 if (!(proto->common.fn_flags & ZEND_ACC_ABSTRACT)) { in do_inheritance_check_on_method_ex()
910 if (!check_only && child->common.prototype != proto && child_zv) { in do_inheritance_check_on_method_ex()
912 if (child->common.scope != ce in do_inheritance_check_on_method_ex()
925 child->common.prototype = proto; in do_inheritance_check_on_method_ex()
937 …ZEND_FN_SCOPE_NAME(child), ZSTR_VAL(child->common.function_name), zend_visibility_string(parent_fl… in do_inheritance_check_on_method_ex()
972 func, func->common.scope, parent, parent->common.scope, ce, child, in do_inherit_method()
976 func, func->common.scope, parent, parent->common.scope, ce, child, in do_inherit_method()
981 if (is_interface || (parent->common.fn_flags & (ZEND_ACC_ABSTRACT))) { in do_inherit_method()
1583 return fn->common.scope->ce_flags & ZEND_ACC_TRAIT ? ce : fn->common.scope; in fixup_trait_scope()
1595 … (existing_fn->common.fn_flags & ZEND_ACC_PPP_MASK) == (fn->common.fn_flags & ZEND_ACC_PPP_MASK) && in zend_add_trait_method()
1596 (existing_fn->common.scope->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) { in zend_add_trait_method()
1601 if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_add_trait_method()
1613 if (existing_fn->common.scope == ce) { in zend_add_trait_method()
1616 } else if (UNEXPECTED((existing_fn->common.scope->ce_flags & ZEND_ACC_TRAIT) in zend_add_trait_method()
1617 && !(existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT))) { in zend_add_trait_method()
1620 ZSTR_VAL(fn->common.scope->name), ZSTR_VAL(fn->common.function_name), in zend_add_trait_method()
1622 ZSTR_VAL(existing_fn->common.scope->name), ZSTR_VAL(existing_fn->common.function_name)); in zend_add_trait_method()
1635 new_fn->common.fn_flags |= ZEND_ACC_ARENA_ALLOCATED; in zend_add_trait_method()
1644 new_fn->common.function_name = name; in zend_add_trait_method()
1653 if ((fn->common.scope->ce_flags & ZEND_ACC_TRAIT) == ZEND_ACC_TRAIT) { in zend_fixup_trait_method()
1655 fn->common.scope = ce; in zend_fixup_trait_method()
1657 if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_fixup_trait_method()
1682 && fn->common.scope == aliases[i] in zend_traits_copy_functions()
1689 fn_copy.common.fn_flags = alias->modifiers | (fn->common.fn_flags & ~ZEND_ACC_PPP_MASK); in zend_traits_copy_functions()
1714 && fn->common.scope == aliases[i] in zend_traits_copy_functions()
1717 fn_copy.common.fn_flags = alias->modifiers | (fn->common.fn_flags & ~ZEND_ACC_PPP_MASK); in zend_traits_copy_functions()
1725 zend_add_trait_method(ce, fn->common.function_name, fnname, &fn_copy); in zend_traits_copy_functions()
2141 ai.afn[idx] ? ZSTR_VAL(ai.afn[idx]->common.function_name) : "", \
2155 if (fn->common.fn_flags & ZEND_ACC_CTOR) { in zend_verify_abstract_class_function()
2176 if (func->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_verify_abstract_class()
2179 if (!is_explicit_abstract || (func->common.fn_flags & ZEND_ACC_PRIVATE)) { in zend_verify_abstract_class()
2271 if (child_fn->common.type == ZEND_INTERNAL_FUNCTION) { in add_compatibility_obligation()
2276 if (parent_fn->common.type == ZEND_INTERNAL_FUNCTION) { in add_compatibility_obligation()
2492 ZEND_ASSERT(ce->__tostring->common.fn_flags & ZEND_ACC_TRAIT_CLONE); in zend_do_link_class()
2534 child_func, child_func->common.scope, in zend_can_early_bind()
2535 parent_func, parent_func->common.scope, in zend_can_early_bind()