Lines Matching refs:fn_flags

108 		new_function->common.fn_flags |= ZEND_ACC_ARENA_ALLOCATED;  in zend_duplicate_internal_function()
190 if (parent->constructor && UNEXPECTED(parent->constructor->common.fn_flags & ZEND_ACC_FINAL)) { in do_inherit_parent_constructor()
202 char *zend_visibility_string(uint32_t fn_flags) /* {{{ */ in zend_visibility_string() argument
204 if (fn_flags & ZEND_ACC_PUBLIC) { in zend_visibility_string()
206 } else if (fn_flags & ZEND_ACC_PRIVATE) { in zend_visibility_string()
209 ZEND_ASSERT(fn_flags & ZEND_ACC_PROTECTED); in zend_visibility_string()
215 static const char *zend_asymmetric_visibility_string(uint32_t fn_flags) /* {{{ */ in zend_asymmetric_visibility_string() argument
217 if (fn_flags & ZEND_ACC_PRIVATE_SET) { in zend_asymmetric_visibility_string()
219 } else if (fn_flags & ZEND_ACC_PROTECTED_SET) { in zend_asymmetric_visibility_string()
222 ZEND_ASSERT(!(fn_flags & ZEND_ACC_PUBLIC_SET)); in zend_asymmetric_visibility_string()
777 ZEND_ASSERT(!((fe->common.fn_flags & ZEND_ACC_CTOR) 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()
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()
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()
895 if (fptr->op_array.fn_flags & ZEND_ACC_RETURN_REFERENCE) { 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()
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()
1142 child_flags = child->common.fn_flags; in do_inheritance_check_on_method()
1175 child->common.fn_flags |= ZEND_ACC_CHANGED; in do_inheritance_check_on_method()
1184 if (!(proto->common.fn_flags & ZEND_ACC_ABSTRACT)) { 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()
1242 if (is_interface || (parent->common.fn_flags & (ZEND_ACC_ABSTRACT))) { in do_inherit_method()
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()
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()
1694 && (func->op_array.fn_flags & ZEND_ACC_RETURN_REFERENCE) in zend_verify_hooked_property()
1700 if (func->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_verify_hooked_property()
2235 if (f->common.fn_flags & ZEND_ACC_OVERRIDE) { in zend_inheritance_check_override()
2253 if (f && f->common.fn_flags & ZEND_ACC_OVERRIDE) { in zend_inheritance_check_override()
2283 … (existing_fn->common.fn_flags & ZEND_ACC_PPP_MASK) == (fn->common.fn_flags & ZEND_ACC_PPP_MASK) && in zend_add_trait_method()
2289 if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_add_trait_method()
2305 && !(existing_fn->common.fn_flags & ZEND_ACC_ABSTRACT))) { in zend_add_trait_method()
2319 new_fn->common.fn_flags |= ZEND_ACC_ARENA_ALLOCATED; in zend_add_trait_method()
2323 new_fn->op_array.fn_flags &= ~ZEND_ACC_IMMUTABLE; in zend_add_trait_method()
2325 new_fn->common.fn_flags |= ZEND_ACC_TRAIT_CLONE; in zend_add_trait_method()
2354 if (fn->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_fixup_trait_method()
2369 …&& (fn_copy->common.fn_flags & (ZEND_ACC_PRIVATE | ZEND_ACC_FINAL)) == (ZEND_ACC_PRIVATE | ZEND_AC… in zend_traits_check_private_final_inheritance()
2395 fn_copy.common.fn_flags = alias->modifiers | (fn->common.fn_flags & ~ZEND_ACC_PPP_MASK); in zend_traits_copy_functions()
2397 fn_copy.common.fn_flags = alias->modifiers | fn->common.fn_flags; in zend_traits_copy_functions()
2400 zend_traits_check_private_final_inheritance(fn->common.fn_flags, &fn_copy, alias->alias); in zend_traits_copy_functions()
2428 fn_copy.common.fn_flags = alias->modifiers | (fn->common.fn_flags & ~ZEND_ACC_PPP_MASK); in zend_traits_copy_functions()
2430 fn_copy.common.fn_flags = alias->modifiers | fn->common.fn_flags; in zend_traits_copy_functions()
2439 zend_traits_check_private_final_inheritance(fn->common.fn_flags, &fn_copy, fnname); in zend_traits_copy_functions()
2918 new_fn->op_array.fn_flags &= ~ZEND_ACC_IMMUTABLE; in zend_do_traits_property_binding()
2919 new_fn->common.fn_flags |= ZEND_ACC_TRAIT_CLONE; in zend_do_traits_property_binding()
2993 if (func->common.fn_flags & ZEND_ACC_ABSTRACT) { in zend_verify_abstract_class()
2996 if (!is_explicit_abstract || (func->common.fn_flags & ZEND_ACC_PRIVATE)) { in zend_verify_abstract_class()
3008 if (fn && (fn->common.fn_flags & ZEND_ACC_ABSTRACT)) { in zend_verify_abstract_class()
3290 new_op_array->fn_flags &= ~ZEND_ACC_IMMUTABLE; in zend_lazy_method_load()
3628 ZEND_ASSERT(ce->__tostring->common.fn_flags & ZEND_ACC_TRAIT_CLONE); in zend_do_link_class()