Lines Matching refs:common

108 		new_function->common.fn_flags |= ZEND_ACC_ARENA_ALLOCATED;  in zend_duplicate_internal_function()
110 if (EXPECTED(new_function->common.function_name)) { in zend_duplicate_internal_function()
111 zend_string_addref(new_function->common.function_name); in zend_duplicate_internal_function()
190 if (parent->constructor && UNEXPECTED(parent->constructor->common.fn_flags & ZEND_ACC_FINAL)) { in do_inherit_parent_constructor()
192 ZSTR_VAL(parent->name), ZSTR_VAL(parent->constructor->common.function_name), in do_inherit_parent_constructor()
193 ZSTR_VAL(ce->name), ZSTR_VAL(ce->constructor->common.function_name)); in do_inherit_parent_constructor()
777 ZEND_ASSERT(!((fe->common.fn_flags & ZEND_ACC_CTOR) in zend_do_perform_implementation_check()
778 && ((proto->common.scope->ce_flags & ZEND_ACC_INTERFACE) == 0 in zend_do_perform_implementation_check()
779 && (proto->common.fn_flags & ZEND_ACC_ABSTRACT) == 0))); in zend_do_perform_implementation_check()
783 ZEND_ASSERT(!(proto->common.fn_flags & ZEND_ACC_PRIVATE) in zend_do_perform_implementation_check()
784 || (proto->common.fn_flags & ZEND_ACC_ABSTRACT)); in zend_do_perform_implementation_check()
787 if (proto->common.required_num_args < fe->common.required_num_args) { in zend_do_perform_implementation_check()
792 if ((proto->common.fn_flags & ZEND_ACC_RETURN_REFERENCE) in zend_do_perform_implementation_check()
793 && !(fe->common.fn_flags & ZEND_ACC_RETURN_REFERENCE)) { in zend_do_perform_implementation_check()
797 proto_is_variadic = (proto->common.fn_flags & ZEND_ACC_VARIADIC) != 0; in zend_do_perform_implementation_check()
798 fe_is_variadic = (fe->common.fn_flags & ZEND_ACC_VARIADIC) != 0; in zend_do_perform_implementation_check()
806 proto_num_args = proto->common.num_args + proto_is_variadic; in zend_do_perform_implementation_check()
807 fe_num_args = fe->common.num_args + fe_is_variadic; in zend_do_perform_implementation_check()
813 i < proto_num_args ? &proto->common.arg_info[i] : in zend_do_perform_implementation_check()
814 proto_is_variadic ? &proto->common.arg_info[proto_num_args - 1] : NULL; in zend_do_perform_implementation_check()
816 i < fe_num_args ? &fe->common.arg_info[i] : in zend_do_perform_implementation_check()
817 fe_is_variadic ? &fe->common.arg_info[fe_num_args - 1] : NULL; in zend_do_perform_implementation_check()
848 if (proto->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_do_perform_implementation_check()
850 if (!(fe->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE)) { in zend_do_perform_implementation_check()
851 if (!ZEND_ARG_TYPE_IS_TENTATIVE(&proto->common.arg_info[-1])) { in zend_do_perform_implementation_check()
861 fe_scope, fe->common.arg_info[-1].type, proto_scope, proto->common.arg_info[-1].type); in zend_do_perform_implementation_check()
865 && ZEND_ARG_TYPE_IS_TENTATIVE(&proto->common.arg_info[-1])) { in zend_do_perform_implementation_check()
899 if (fptr->common.scope) { in zend_get_function_declaration()
900 if (fptr->common.scope->ce_flags & ZEND_ACC_ANON_CLASS) { in zend_get_function_declaration()
902 smart_str_appends(&str, ZSTR_VAL(fptr->common.scope->name)); in zend_get_function_declaration()
904 smart_str_appendl(&str, ZSTR_VAL(fptr->common.scope->name), ZSTR_LEN(fptr->common.scope->name)); in zend_get_function_declaration()
909 smart_str_append(&str, fptr->common.function_name); in zend_get_function_declaration()
912 if (fptr->common.arg_info) { in zend_get_function_declaration()
914 zend_arg_info *arg_info = fptr->common.arg_info; in zend_get_function_declaration()
916 required = fptr->common.required_num_args; in zend_get_function_declaration()
917 num_args = fptr->common.num_args; in zend_get_function_declaration()
918 if (fptr->common.fn_flags & ZEND_ACC_VARIADIC) { in zend_get_function_declaration()
1017 if (fptr->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE) { in zend_get_function_declaration()
1019 zend_append_type_hint(&str, scope, fptr->common.arg_info - 1, 1); in zend_get_function_declaration()
1028 return fn->common.type == ZEND_USER_FUNCTION ? fn->op_array.filename : NULL; in func_filename()
1032 return fn->common.type == ZEND_USER_FUNCTION ? fn->op_array.line_start : 0; in func_lineno()
1055 child->common.attributes, in emit_incompatible_method_error()
1110 uint32_t parent_flags = parent->common.fn_flags; in do_inheritance_check_on_method()
1127 child->common.fn_flags |= ZEND_ACC_CHANGED; in do_inheritance_check_on_method()
1139 ZEND_FN_SCOPE_NAME(parent), ZSTR_VAL(child->common.function_name)); in do_inheritance_check_on_method()
1142 child_flags = child->common.fn_flags; in do_inheritance_check_on_method()
1153 ZEND_FN_SCOPE_NAME(parent), ZSTR_VAL(child->common.function_name), ZEND_FN_SCOPE_NAME(child)); in do_inheritance_check_on_method()
1157 ZEND_FN_SCOPE_NAME(parent), ZSTR_VAL(child->common.function_name), ZEND_FN_SCOPE_NAME(child)); in do_inheritance_check_on_method()
1169 ZEND_FN_SCOPE_NAME(parent), ZSTR_VAL(child->common.function_name), ZEND_FN_SCOPE_NAME(child)); in do_inheritance_check_on_method()
1175 child->common.fn_flags |= ZEND_ACC_CHANGED; in do_inheritance_check_on_method()
1178 proto = parent->common.prototype ? in do_inheritance_check_on_method()
1179 parent->common.prototype : parent; in do_inheritance_check_on_method()
1184 if (!(proto->common.fn_flags & ZEND_ACC_ABSTRACT)) { in do_inheritance_check_on_method()
1191 && child->common.prototype != proto) { in do_inheritance_check_on_method()
1193 child->common.prototype = proto; in do_inheritance_check_on_method()
1204 …ZEND_FN_SCOPE_NAME(child), ZSTR_VAL(child->common.function_name), zend_visibility_string(parent_fl… in do_inheritance_check_on_method()
1215 && (child->common.fn_flags & ZEND_ACC_OVERRIDE)) { in do_inheritance_check_on_method()
1217 child->common.fn_flags &= ~ZEND_ACC_OVERRIDE; in do_inheritance_check_on_method()
1239 func, func->common.scope, parent, parent->common.scope, ce, child, flags); in do_inherit_method()
1242 if (is_interface || (parent->common.fn_flags & (ZEND_ACC_ABSTRACT))) { in do_inherit_method()
1301 zend_type set_type = parent->hooks[ZEND_PROPERTY_HOOK_SET]->common.arg_info[0].type; in emit_set_hook_type_error()
1330 zend_type set_type = parent_info->hooks[ZEND_PROPERTY_HOOK_SET]->common.arg_info[0].type; in verify_property_type_compatibility()
1358 && (child->common.fn_flags & ZEND_ACC_OVERRIDE) in inherit_property_hook()
1360 child->common.fn_flags &= ~ZEND_ACC_OVERRIDE; in inherit_property_hook()
1368 if (parent->common.fn_flags & ZEND_ACC_ABSTRACT) { in inherit_property_hook()
1384 child->common.prototype = parent->common.prototype ? parent->common.prototype : parent; in inherit_property_hook()
1386 uint32_t parent_flags = parent->common.fn_flags; in inherit_property_hook()
1388 child->common.fn_flags |= ZEND_ACC_CHANGED; in inherit_property_hook()
1395 ZSTR_VAL(parent->common.scope->name), in inherit_property_hook()
1396 ZSTR_VAL(parent->common.function_name)); in inherit_property_hook()
1400 child, child->common.scope, parent, parent->common.scope, ce, /* child */ NULL, in inherit_property_hook()
1700 if (func->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_verify_hooked_property()
2256 if (f->common.fn_flags & ZEND_ACC_OVERRIDE) { in zend_inheritance_check_override()
2262 ZEND_FN_SCOPE_NAME(f), ZSTR_VAL(f->common.function_name)); in zend_inheritance_check_override()
2274 if (f && f->common.fn_flags & ZEND_ACC_OVERRIDE) { in zend_inheritance_check_override()
2280 ZEND_FN_SCOPE_NAME(f), ZSTR_VAL(f->common.function_name)); in zend_inheritance_check_override()
2291 return fn->common.scope->ce_flags & ZEND_ACC_TRAIT ? ce : fn->common.scope; in fixup_trait_scope()
2304 … (existing_fn->common.fn_flags & ZEND_ACC_PPP_MASK) == (fn->common.fn_flags & ZEND_ACC_PPP_MASK) && in zend_add_trait_method()
2305 (existing_fn->common.scope->ce_flags & ZEND_ACC_TRAIT)) { in zend_add_trait_method()
2310 if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_add_trait_method()
2322 if (existing_fn->common.scope == ce) { in zend_add_trait_method()
2325 } else if (UNEXPECTED((existing_fn->common.scope->ce_flags & ZEND_ACC_TRAIT) in zend_add_trait_method()
2326 && !(existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT))) { in zend_add_trait_method()
2329 ZSTR_VAL(fn->common.scope->name), ZSTR_VAL(fn->common.function_name), in zend_add_trait_method()
2331 ZSTR_VAL(existing_fn->common.scope->name), ZSTR_VAL(existing_fn->common.function_name)); in zend_add_trait_method()
2340 new_fn->common.fn_flags |= ZEND_ACC_ARENA_ALLOCATED; in zend_add_trait_method()
2346 new_fn->common.fn_flags |= ZEND_ACC_TRAIT_CLONE; in zend_add_trait_method()
2349 new_fn->common.function_name = name; in zend_add_trait_method()
2358 if (!(existing_fn->common.scope->ce_flags & ZEND_ACC_TRAIT)) { in zend_add_trait_method()
2371 if (fn->common.scope->ce_flags & ZEND_ACC_TRAIT) { in zend_fixup_trait_method()
2373 fn->common.scope = ce; in zend_fixup_trait_method()
2375 if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_fixup_trait_method()
2390 …&& (fn_copy->common.fn_flags & (ZEND_ACC_PRIVATE | ZEND_ACC_FINAL)) == (ZEND_ACC_PRIVATE | ZEND_AC… in zend_traits_check_private_final_inheritance()
2411 && fn->common.scope == aliases[i] in zend_traits_copy_functions()
2416 fn_copy.common.fn_flags = alias->modifiers | (fn->common.fn_flags & ~ZEND_ACC_PPP_MASK); in zend_traits_copy_functions()
2418 fn_copy.common.fn_flags = alias->modifiers | fn->common.fn_flags; in zend_traits_copy_functions()
2421 zend_traits_check_private_final_inheritance(fn->common.fn_flags, &fn_copy, alias->alias); in zend_traits_copy_functions()
2445 && fn->common.scope == aliases[i] in zend_traits_copy_functions()
2449 fn_copy.common.fn_flags = alias->modifiers | (fn->common.fn_flags & ~ZEND_ACC_PPP_MASK); in zend_traits_copy_functions()
2451 fn_copy.common.fn_flags = alias->modifiers | fn->common.fn_flags; in zend_traits_copy_functions()
2460 zend_traits_check_private_final_inheritance(fn->common.fn_flags, &fn_copy, fnname); in zend_traits_copy_functions()
2462 zend_add_trait_method(ce, fn->common.function_name, fnname, &fn_copy); in zend_traits_copy_functions()
2940 new_fn->common.fn_flags |= ZEND_ACC_TRAIT_CLONE; in zend_do_traits_property_binding()
2941 new_fn->common.prop_info = new_prop; in zend_do_traits_property_binding()
2988 ai.afn[idx] ? ZSTR_VAL(ai.afn[idx]->common.function_name) : "", \
3014 if (func->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_verify_abstract_class()
3017 if (!is_explicit_abstract || (func->common.fn_flags & ZEND_ACC_PRIVATE)) { in zend_verify_abstract_class()
3029 if (fn && (fn->common.fn_flags & ZEND_ACC_ABSTRACT)) { in zend_verify_abstract_class()
3148 if (child_fn->common.type == ZEND_INTERNAL_FUNCTION) { in add_compatibility_obligation()
3153 if (parent_fn->common.type == ZEND_INTERNAL_FUNCTION) { in add_compatibility_obligation()
3653 ZEND_ASSERT(ce->__tostring->common.fn_flags & ZEND_ACC_TRAIT_CLONE); in zend_do_link_class()
3745 child_func, child_func->common.scope, in zend_can_early_bind()
3746 parent_func, parent_func->common.scope, in zend_can_early_bind()