/PHP-8.4/ext/spl/ |
H A D | spl_functions.c | 24 void spl_add_class_name(zval *list, zend_class_entry *pce, int allow, int ce_flags) in spl_add_class_name() argument 26 …if (!allow || (allow > 0 && (pce->ce_flags & ce_flags)) || (allow < 0 && !(pce->ce_flags & ce_flag… in spl_add_class_name() 39 void spl_add_interfaces(zval *list, zend_class_entry * pce, int allow, int ce_flags) in spl_add_interfaces() argument 42 ZEND_ASSERT(pce->ce_flags & ZEND_ACC_LINKED); in spl_add_interfaces() 44 spl_add_class_name(list, pce->interfaces[num_interfaces], allow, ce_flags); in spl_add_interfaces() 51 void spl_add_traits(zval *list, zend_class_entry * pce, int allow, int ce_flags) in spl_add_traits() argument 59 spl_add_class_name(list, trait, allow, ce_flags); in spl_add_traits() 66 void spl_add_classes(zend_class_entry *pce, zval *list, bool sub, int allow, int ce_flags) in spl_add_classes() argument 69 spl_add_class_name(list, pce, allow, ce_flags); in spl_add_classes() 71 spl_add_interfaces(list, pce, allow, ce_flags); in spl_add_classes() [all …]
|
H A D | php_spl.c | 159 #define SPL_LIST_CLASSES(z_list, sub, allow, ce_flags) \ argument 162 SPL_ADD_CLASS(ArrayObject, z_list, sub, allow, ce_flags); \ 172 SPL_ADD_CLASS(GlobIterator, z_list, sub, allow, ce_flags); \ 200 SPL_ADD_CLASS(SplFileInfo, z_list, sub, allow, ce_flags); \ 203 SPL_ADD_CLASS(SplHeap, z_list, sub, allow, ce_flags); \ 204 SPL_ADD_CLASS(SplMinHeap, z_list, sub, allow, ce_flags); \ 205 SPL_ADD_CLASS(SplMaxHeap, z_list, sub, allow, ce_flags); \ 207 SPL_ADD_CLASS(SplObserver, z_list, sub, allow, ce_flags); \ 209 SPL_ADD_CLASS(SplQueue, z_list, sub, allow, ce_flags); \ 210 SPL_ADD_CLASS(SplStack, z_list, sub, allow, ce_flags); \ [all …]
|
H A D | spl_functions.h | 27 void spl_add_class_name(zval * list, zend_class_entry * pce, int allow, int ce_flags); 28 void spl_add_interfaces(zval * list, zend_class_entry * pce, int allow, int ce_flags); 29 void spl_add_traits(zval * list, zend_class_entry * pce, int allow, int ce_flags); 30 void spl_add_classes(zend_class_entry *pce, zval *list, bool sub, int allow, int ce_flags);
|
/PHP-8.4/Zend/ |
H A D | zend_inheritance.c | 317 if (ce1->ce_flags & ZEND_ACC_LINKED) { in unlinked_instanceof() 1767 if ((parent_ce->ce_flags & ZEND_ACC_INTERFACE) || (parent_ce->ce_flags & ZEND_ACC_TRAIT)) { in zend_do_inheritance_ex() 2225 if (ce->ce_flags & ZEND_ACC_TRAIT) { in zend_inheritance_check_override() 3244 ce->ce_flags |= ZEND_ACC_LINKED; in resolve_delayed_variance_obligations() 3288 ce->ce_flags &= ~ZEND_ACC_IMMUTABLE; in zend_lazy_class_load() 3411 is_cacheable &= (ce)->ce_flags; \ 3417 is_cacheable &= (ce)->ce_flags; \ 3497 if (ce->ce_flags & ZEND_ACC_ENUM) { in zend_do_link_class() 3547 if (ce->ce_flags & ZEND_ACC_ENUM) { in zend_do_link_class() 3634 ce->ce_flags |= ZEND_ACC_LINKED; in zend_do_link_class() [all …]
|
H A D | zend_enum.h | 51 ZEND_ASSERT(zobj->ce->ce_flags & ZEND_ACC_ENUM); in zend_enum_fetch_case_name() 57 ZEND_ASSERT(zobj->ce->ce_flags & ZEND_ACC_ENUM); in zend_enum_fetch_case_value()
|
H A D | zend_API.c | 1421 mutable_data->ce_flags = class_type->ce_flags; in zend_allocate_mutable_data() 1524 uint32_t ce_flags; in zend_update_class_constants() local 1526 ce_flags = class_type->ce_flags; in zend_update_class_constants() 1536 ce_flags = mutable_data->ce_flags; in zend_update_class_constants() 1647 mutable_data->ce_flags = ce_flags; in zend_update_class_constants() 1649 class_type->ce_flags = ce_flags; in zend_update_class_constants() 2867 ce->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_add_magic_method() 2870 ce->ce_flags |= ZEND_ACC_USE_GUARDS; in zend_add_magic_method() 3471 …class_entry->ce_flags = orig_class_entry->ce_flags | ce_flags | ZEND_ACC_CONSTANTS_UPDATED | ZEND_… in do_register_internal_class() 3507 uint32_t ce_flags in zend_register_internal_class_with_flags() argument [all …]
|
H A D | zend_attributes.c | 74 if (scope->ce_flags & ZEND_ACC_TRAIT) { in validate_allow_dynamic_properties() 79 if (scope->ce_flags & ZEND_ACC_INTERFACE) { in validate_allow_dynamic_properties() 84 if (scope->ce_flags & ZEND_ACC_READONLY_CLASS) { in validate_allow_dynamic_properties() 89 if (scope->ce_flags & ZEND_ACC_ENUM) { in validate_allow_dynamic_properties() 94 scope->ce_flags |= ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES; in validate_allow_dynamic_properties()
|
H A D | zend_enum.c | 129 if (class_type->ce_flags & ZEND_ACC_ENUM) { in zend_implement_unit_enum() 142 if (!(class_type->ce_flags & ZEND_ACC_ENUM)) { in zend_implement_backed_enum() 181 ZEND_ASSERT(!(ce->ce_flags & ZEND_ACC_RESOLVED_INTERFACES)); in zend_enum_add_interfaces() 198 ZEND_ASSERT(ce->ce_flags & ZEND_ACC_ENUM); in zend_enum_build_backed_enum_table() 291 if (ce->type == ZEND_USER_CLASS && !(ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) { in zend_enum_get_case_by_value() 473 ce->ce_flags |= ZEND_ACC_NO_DYNAMIC_PROPERTIES; in zend_enum_register_props() 509 ce->ce_flags |= ZEND_ACC_ENUM; in zend_register_internal_enum()
|
H A D | zend_lazy_objects.c | 253 if (UNEXPECTED(reflection_ce->ce_flags & ZEND_ACC_UNINSTANTIABLE)) { in zend_object_make_lazy() 262 if (UNEXPECTED(!(reflection_ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED))) { in zend_object_make_lazy() 333 && ((obj->ce->ce_flags & ZEND_ACC_FINAL) || (prop_info->flags & ZEND_ACC_FINAL))) { in zend_object_make_lazy() 383 ZEND_ASSERT(ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED); in zend_lazy_object_mark_as_initialized() 573 ZEND_ASSERT(ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED); in zend_lazy_object_init()
|
H A D | zend_objects_API.h | 87 ((ce->ce_flags & ZEND_ACC_USE_GUARDS) ? 0 : 1)); in zend_object_properties_size()
|
H A D | zend_objects.c | 39 if (UNEXPECTED(ce->ce_flags & ZEND_ACC_USE_GUARDS)) { in _zend_object_std_init() 100 if (UNEXPECTED(object->ce->ce_flags & ZEND_ACC_USE_GUARDS)) { in zend_object_std_dtor()
|
H A D | zend_opcode.c | 298 if (ce->ce_flags & ZEND_ACC_IMMUTABLE) { in destroy_zend_class() 308 if (ce->ce_flags & ZEND_ACC_FILE_CACHED) { in destroy_zend_class() 338 if (!(ce->ce_flags & ZEND_ACC_CACHED)) { in destroy_zend_class() 339 if (ce->parent_name && !(ce->ce_flags & ZEND_ACC_RESOLVED_PARENT)) { in destroy_zend_class() 354 if (ce->num_interfaces > 0 && !(ce->ce_flags & ZEND_ACC_RESOLVED_INTERFACES)) { in destroy_zend_class() 427 if (ce->num_interfaces > 0 && (ce->ce_flags & ZEND_ACC_RESOLVED_INTERFACES)) { in destroy_zend_class() 539 if (Z_TYPE_P(zv) != IS_ALIAS_PTR && !(ce->ce_flags & ZEND_ACC_IMMUTABLE)) { in zend_class_add_ref()
|
H A D | zend_interfaces.c | 264 if (class_type->ce_flags & ZEND_ACC_EXPLICIT_ABSTRACT_CLASS) { in zend_implement_traversable() 270 ZEND_ASSERT(class_type->ce_flags & ZEND_ACC_RESOLVED_INTERFACES); in zend_implement_traversable() 478 if (!(class_type->ce_flags & ZEND_ACC_EXPLICIT_ABSTRACT_CLASS) in zend_implement_serializable()
|
H A D | zend.h | 118 uint32_t ce_flags; member 156 uint32_t ce_flags; member
|
/PHP-8.4/ext/opcache/ |
H A D | zend_persist.c | 770 if (ce->ce_flags & ZEND_ACC_IMMUTABLE) { in zend_persist_class_method() 772 if (ce->ce_flags & ZEND_ACC_LINKED) { in zend_persist_class_method() 900 ce->ce_flags |= ZEND_ACC_IMMUTABLE; in zend_persist_class_entry() 901 if ((ce->ce_flags & ZEND_ACC_LINKED) in zend_persist_class_entry() 908 ce->ce_flags |= ZEND_ACC_FILE_CACHED; in zend_persist_class_entry() 912 if (!(ce->ce_flags & ZEND_ACC_CACHED)) { in zend_persist_class_entry() 952 if (ce->ce_flags & ZEND_ACC_IMMUTABLE) { in zend_persist_class_entry() 953 if (ce->ce_flags & ZEND_ACC_LINKED) { in zend_persist_class_entry() 1015 if (ce->ce_flags & ZEND_ACC_CACHED) { in zend_persist_class_entry() 1019 ce->ce_flags |= ZEND_ACC_CACHED; in zend_persist_class_entry() [all …]
|
H A D | zend_persist_calc.c | 225 && (op_array->scope->ce_flags & ZEND_ACC_CACHED)) { in zend_persist_op_array_calc_ex() 397 if (((c->ce->ce_flags & ZEND_ACC_IMMUTABLE) && !(Z_CONSTANT_FLAGS(c->value) & CONST_OWNED)) in zend_persist_class_constant_calc() 432 if (!(ce->ce_flags & ZEND_ACC_CACHED)) { in zend_persist_class_entry_calc() 434 if (ce->parent_name && !(ce->ce_flags & ZEND_ACC_LINKED)) { in zend_persist_class_entry_calc() 484 if (ce->num_interfaces && (ce->ce_flags & ZEND_ACC_LINKED)) { in zend_persist_class_entry_calc() 495 if (ce->ce_flags & ZEND_ACC_CACHED) { in zend_persist_class_entry_calc() 514 if (!(ce->ce_flags & ZEND_ACC_LINKED)) { in zend_persist_class_entry_calc()
|
H A D | zend_accelerator_util_funcs.c | 226 if (!(ce1->ce_flags & ZEND_ACC_ANON_CLASS)) { in _zend_accel_class_hash_copy() 238 if ((ce->ce_flags & ZEND_ACC_LINKED) && ZSTR_VAL(p->key)[0]) { in _zend_accel_class_hash_copy() 358 zend_class_entry *parent_ce = !(orig_ce->ce_flags & ZEND_ACC_LINKED) in zend_accel_do_delayed_early_binding() 361 if (parent_ce || (orig_ce->ce_flags & ZEND_ACC_LINKED)) { in zend_accel_do_delayed_early_binding()
|
H A D | ZendAccelerator.c | 2332 ZEND_ASSERT(ce->ce_flags & ZEND_ACC_LINKED); in zend_accel_inheritance_cache_add() 3826 ce->ce_flags |= ZEND_ACC_CONSTANTS_UPDATED; 3919 || (ce->ce_flags & ZEND_ACC_LINKED)) { 3945 ce->ce_flags |= temporary_flags; 3964 ce->ce_flags &= ~temporary_flags; 3980 orig_ce->ce_flags &= ~temporary_flags; 4005 if ((ce->ce_flags & ZEND_ACC_LINKED) && !(ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) { 4023 && !(ce->ce_flags & ZEND_ACC_LINKED)) { 4026 if (!(ce->ce_flags & ZEND_ACC_ANON_CLASS) 4214 if (ce->ce_flags & ZEND_ACC_TRAIT) { [all …]
|
H A D | zend_file_cache.c | 739 if (!(ce->ce_flags & ZEND_ACC_LINKED)) { 794 ZEND_ASSERT(!(ce->ce_flags & ZEND_ACC_LINKED)); 1591 if (!(ce->ce_flags & ZEND_ACC_ANON_CLASS)) { 1599 if (!(ce->ce_flags & ZEND_ACC_LINKED)) { 1648 ZEND_ASSERT(!(ce->ce_flags & ZEND_ACC_LINKED)); 1749 ce->ce_flags |= ZEND_ACC_IMMUTABLE; 1750 ce->ce_flags &= ~ZEND_ACC_FILE_CACHED; 1756 ce->ce_flags &= ~ZEND_ACC_IMMUTABLE; 1757 ce->ce_flags |= ZEND_ACC_FILE_CACHED; 1769 …ce->default_object_handlers = ce->ce_flags & ZEND_ACC_ENUM ? &zend_enum_object_handlers : &std_obj…
|
/PHP-8.4/sapi/phpdbg/ |
H A D | phpdbg_print.c | 130 (ce->ce_flags & ZEND_ACC_INTERFACE) ? in PHPDBG_PRINT() 132 (ce->ce_flags & ZEND_ACC_ABSTRACT) ? in PHPDBG_PRINT() 280 (ce->ce_flags & ZEND_ACC_INTERFACE) ? in phpdbg_print_opcodes_ce() 282 (ce->ce_flags & ZEND_ACC_ABSTRACT) ? in phpdbg_print_opcodes_ce()
|
H A D | phpdbg_info.c | 377 …const char *type = (ce->ce_flags & ZEND_ACC_INTERFACE) ? "Interface" : (ce->ce_flags & ZEND_ACC_AB… in phpdbg_print_class_name() 407 if (ce->ce_flags & ZEND_ACC_LINKED) { in PHPDBG_INFO()
|
/PHP-8.4/ext/standard/ |
H A D | http.c | 96 ZEND_ASSERT(Z_OBJCE_P(scalar)->ce_flags & ZEND_ACC_ENUM); in php_url_encode_scalar() 169 && !(Z_OBJCE_P(zdata)->ce_flags & ZEND_ACC_ENUM))) { in php_url_encode_hash_ex() 248 …if (UNEXPECTED(Z_TYPE_P(formdata) == IS_OBJECT && (Z_OBJCE_P(formdata)->ce_flags & ZEND_ACC_ENUM))… in PHP_FUNCTION()
|
/PHP-8.4/Zend/Optimizer/ |
H A D | zend_optimizer.c | 799 if (ce->ce_flags & ZEND_ACC_PRELOADED) { in zend_optimizer_ignore_class() 858 && !(op_array->scope->ce_flags & ZEND_ACC_TRAIT) in zend_optimizer_get_class_entry_from_op1() 861 && (op_array->scope->ce_flags & ZEND_ACC_FINAL)))) { in zend_optimizer_get_class_entry_from_op1() 888 && op_array->scope && !(op_array->scope->ce_flags & ZEND_ACC_TRAIT) in zend_fetch_class_const_info() 897 if (op_array->scope->ce_flags & ZEND_ACC_LINKED) { in zend_fetch_class_const_info() 902 if (!ce || (ce->ce_flags & ZEND_ACC_TRAIT)) { in zend_fetch_class_const_info() 914 …&& !(const_info->ce->ce_flags & ZEND_ACC_FINAL) && !(ZEND_CLASS_CONST_FLAGS(const_info) & ZEND_ACC… in zend_fetch_class_const_info() 975 && !(op_array->scope->ce_flags & ZEND_ACC_TRAIT)) { in zend_optimizer_get_called_func() 991 (fbc->common.scope->ce_flags & ZEND_ACC_FINAL) == 0) { in zend_optimizer_get_called_func() 1001 if ((scope->ce_flags & ZEND_ACC_LINKED) && scope->parent) { in zend_optimizer_get_called_func()
|
H A D | escape_analysis.c | 176 && !(ce->ce_flags & forbidden_flags) in is_allocation_def() 177 && (ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) { in is_allocation_def()
|
/PHP-8.4/ext/zend_test/ |
H A D | test_arginfo.h | 839 class_entry->ce_flags |= ZEND_ACC_TRAIT; in register_class__ZendTestTrait() 873 class_entry->ce_flags |= ZEND_ACC_FINAL; in register_class_ZendTestAttribute() 895 class_entry->ce_flags |= ZEND_ACC_FINAL; in register_class_ZendTestAttributeWithArguments() 927 class_entry->ce_flags |= ZEND_ACC_FINAL; in register_class_ZendTestRepeatableAttribute() 949 class_entry->ce_flags |= ZEND_ACC_FINAL; in register_class_ZendTestParameterAttribute() 977 class_entry->ce_flags |= ZEND_ACC_FINAL; in register_class_ZendTestPropertyAttribute() 1088 class_entry->ce_flags |= ZEND_ACC_FINAL; in register_class_ZendTestForbidDynamicCall()
|