/php-src/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-src/Zend/ |
H A D | zend_inheritance.c | 317 if (ce1->ce_flags & ZEND_ACC_LINKED) { in unlinked_instanceof() 1793 if ((parent_ce->ce_flags & ZEND_ACC_INTERFACE) || (parent_ce->ce_flags & ZEND_ACC_TRAIT)) { in zend_do_inheritance_ex() 2251 if (ce->ce_flags & ZEND_ACC_TRAIT) { in zend_inheritance_check_override() 3282 ce->ce_flags |= ZEND_ACC_LINKED; in resolve_delayed_variance_obligations() 3326 ce->ce_flags &= ~ZEND_ACC_IMMUTABLE; in zend_lazy_class_load() 3449 is_cacheable &= (ce)->ce_flags; \ 3455 is_cacheable &= (ce)->ce_flags; \ 3535 if (ce->ce_flags & ZEND_ACC_ENUM) { in zend_do_link_class() 3585 if (ce->ce_flags & ZEND_ACC_ENUM) { in zend_do_link_class() 3676 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() 3478 …class_entry->ce_flags = orig_class_entry->ce_flags | ce_flags | ZEND_ACC_CONSTANTS_UPDATED | ZEND_… in do_register_internal_class() 3514 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-src/ext/opcache/ |
H A D | zend_persist.c | 774 if (ce->ce_flags & ZEND_ACC_IMMUTABLE) { in zend_persist_class_method() 776 if (ce->ce_flags & ZEND_ACC_LINKED) { in zend_persist_class_method() 904 ce->ce_flags |= ZEND_ACC_IMMUTABLE; in zend_persist_class_entry() 905 if ((ce->ce_flags & ZEND_ACC_LINKED) in zend_persist_class_entry() 912 ce->ce_flags |= ZEND_ACC_FILE_CACHED; in zend_persist_class_entry() 916 if (!(ce->ce_flags & ZEND_ACC_CACHED)) { in zend_persist_class_entry() 956 if (ce->ce_flags & ZEND_ACC_IMMUTABLE) { in zend_persist_class_entry() 957 if (ce->ce_flags & ZEND_ACC_LINKED) { in zend_persist_class_entry() 1019 if (ce->ce_flags & ZEND_ACC_CACHED) { in zend_persist_class_entry() 1023 ce->ce_flags |= ZEND_ACC_CACHED; in zend_persist_class_entry() [all …]
|
H A D | zend_persist_calc.c | 228 && (op_array->scope->ce_flags & ZEND_ACC_CACHED)) { in zend_persist_op_array_calc_ex() 400 if (((c->ce->ce_flags & ZEND_ACC_IMMUTABLE) && !(Z_CONSTANT_FLAGS(c->value) & CONST_OWNED)) in zend_persist_class_constant_calc() 435 if (!(ce->ce_flags & ZEND_ACC_CACHED)) { in zend_persist_class_entry_calc() 437 if (ce->parent_name && !(ce->ce_flags & ZEND_ACC_LINKED)) { in zend_persist_class_entry_calc() 487 if (ce->num_interfaces && (ce->ce_flags & ZEND_ACC_LINKED)) { in zend_persist_class_entry_calc() 498 if (ce->ce_flags & ZEND_ACC_CACHED) { in zend_persist_class_entry_calc() 517 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 | 2333 ZEND_ASSERT(ce->ce_flags & ZEND_ACC_LINKED); in zend_accel_inheritance_cache_add() 3878 ce->ce_flags |= ZEND_ACC_CONSTANTS_UPDATED; 3971 || (ce->ce_flags & ZEND_ACC_LINKED)) { 3997 ce->ce_flags |= temporary_flags; 4016 ce->ce_flags &= ~temporary_flags; 4032 orig_ce->ce_flags &= ~temporary_flags; 4057 if ((ce->ce_flags & ZEND_ACC_LINKED) && !(ce->ce_flags & ZEND_ACC_CONSTANTS_UPDATED)) { 4075 && !(ce->ce_flags & ZEND_ACC_LINKED)) { 4078 if (!(ce->ce_flags & ZEND_ACC_ANON_CLASS) 4266 if (ce->ce_flags & ZEND_ACC_TRAIT) { [all …]
|
H A D | zend_file_cache.c | 742 if (!(ce->ce_flags & ZEND_ACC_LINKED)) { 797 ZEND_ASSERT(!(ce->ce_flags & ZEND_ACC_LINKED)); 1601 if (!(ce->ce_flags & ZEND_ACC_ANON_CLASS)) { 1609 if (!(ce->ce_flags & ZEND_ACC_LINKED)) { 1658 ZEND_ASSERT(!(ce->ce_flags & ZEND_ACC_LINKED)); 1759 ce->ce_flags |= ZEND_ACC_IMMUTABLE; 1760 ce->ce_flags &= ~ZEND_ACC_FILE_CACHED; 1766 ce->ce_flags &= ~ZEND_ACC_IMMUTABLE; 1767 ce->ce_flags |= ZEND_ACC_FILE_CACHED; 1779 …ce->default_object_handlers = ce->ce_flags & ZEND_ACC_ENUM ? &zend_enum_object_handlers : &std_obj…
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_info.c | 377 const char *type = (ce->ce_flags & ZEND_ACC_INTERFACE) ? "Interface" in phpdbg_print_class_name() 378 : (ce->ce_flags & ZEND_ACC_ABSTRACT) ? "Abstract Class" in phpdbg_print_class_name() 379 : (ce->ce_flags & ZEND_ACC_ENUM) ? "Enum" in phpdbg_print_class_name() 380 : (ce->ce_flags & ZEND_ACC_TRAIT) ? "Trait" in phpdbg_print_class_name() 411 if (ce->ce_flags & ZEND_ACC_LINKED) { in PHPDBG_INFO()
|
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()
|
/php-src/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-src/Zend/Optimizer/ |
H A D | zend_optimizer.c | 801 if (ce->ce_flags & ZEND_ACC_PRELOADED) { in zend_optimizer_ignore_class() 860 && !(op_array->scope->ce_flags & ZEND_ACC_TRAIT) in zend_optimizer_get_class_entry_from_op1() 863 && (op_array->scope->ce_flags & ZEND_ACC_FINAL)))) { in zend_optimizer_get_class_entry_from_op1() 890 && op_array->scope && !(op_array->scope->ce_flags & ZEND_ACC_TRAIT) in zend_fetch_class_const_info() 899 if (op_array->scope->ce_flags & ZEND_ACC_LINKED) { in zend_fetch_class_const_info() 904 if (!ce || (ce->ce_flags & ZEND_ACC_TRAIT)) { in zend_fetch_class_const_info() 916 …&& !(const_info->ce->ce_flags & ZEND_ACC_FINAL) && !(ZEND_CLASS_CONST_FLAGS(const_info) & ZEND_ACC… in zend_fetch_class_const_info() 977 && !(op_array->scope->ce_flags & ZEND_ACC_TRAIT)) { in zend_optimizer_get_called_func() 993 (fbc->common.scope->ce_flags & ZEND_ACC_FINAL) == 0) { in zend_optimizer_get_called_func() 1003 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-src/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()
|