/opt/cpanel/ea-php84/root/usr/include/php/Zend
NameSizeModeActions
Optimizer/-0755rm
zend.h177580644editdlrm
zend_alloc.h207010644editdlrm
zend_alloc_sizes.h26290644editdlrm
zend_API.h1089560644editdlrm
zend_arena.h60810644editdlrm
zend_ast.h137890644editdlrm
zend_atomic.h130810644editdlrm
zend_attributes.h59130644editdlrm
zend_attributes_arginfo.h145220644editdlrm
zend_bitset.h80830644editdlrm
zend_build.h16260644editdlrm
zend_builtin_functions.h15730644editdlrm
zend_builtin_functions_arginfo.h152290644editdlrm
zend_call_stack.h31000644editdlrm
zend_closures.h23150644editdlrm
zend_closures_arginfo.h20640644editdlrm
zend_compile.h534500644editdlrm
zend_config.h320644editdlrm
zend_constants.h71280644editdlrm
zend_constants_arginfo.h18930644editdlrm
zend_cpuinfo.h95130644editdlrm
zend_dtrace.h20510644editdlrm
zend_enum.h29280644editdlrm
zend_enum_arginfo.h16910644editdlrm
zend_errors.h24160644editdlrm
zend_exceptions.h46480644editdlrm
zend_exceptions_arginfo.h176780644editdlrm
zend_execute.h239640644editdlrm
zend_extensions.h65880644editdlrm
zend_fibers.h54120644editdlrm
zend_fibers_arginfo.h35300644editdlrm
zend_float.h154680644editdlrm
zend_frameless_function.h55180644editdlrm
zend_gc.h46880644editdlrm
zend_gdb.h14200644editdlrm
zend_generators.h76640644editdlrm
zend_generators_arginfo.h28890644editdlrm
zend_globals.h100040644editdlrm
zend_globals_macros.h28410644editdlrm
zend_hash.h515670644editdlrm
zend_highlight.h23210644editdlrm
zend_hrtime.h38420644editdlrm
zend_inheritance.h31860644editdlrm
zend_ini.h121630644editdlrm
zend_ini_parser.h35650644editdlrm
zend_ini_scanner.h19780644editdlrm
zend_ini_scanner_defs.h2060644editdlrm
zend_interfaces.h41180644editdlrm
zend_interfaces_arginfo.h78390644editdlrm
zend_iterators.h39010644editdlrm
zend_language_parser.h109640644editdlrm
zend_language_scanner.h30710644editdlrm
zend_language_scanner_defs.h2650644editdlrm
zend_lazy_objects.h47190644editdlrm
zend_list.h34830644editdlrm
zend_llist.h40320644editdlrm
zend_long.h42270644editdlrm
zend_map_ptr.h35710644editdlrm
zend_max_execution_timer.h14840644editdlrm
zend_mmap.h15120644editdlrm
zend_modules.h48260644editdlrm
zend_multibyte.h49460644editdlrm
zend_multiply.h103020644editdlrm
zend_objects.h19410644editdlrm
zend_objects_API.h56070644editdlrm
zend_object_handlers.h180850644editdlrm
zend_observer.h90360644editdlrm
zend_operators.h340590644editdlrm
zend_portability.h274450644editdlrm
zend_property_hooks.h18240644editdlrm
zend_ptr_stack.h43210644editdlrm
zend_range_check.h30000644editdlrm
zend_signal.h41050644editdlrm
zend_smart_str.h70450644editdlrm
zend_smart_string.h42070644editdlrm
zend_smart_string_public.h12400644editdlrm
zend_smart_str_public.h12220644editdlrm
zend_sort.h15600644editdlrm
zend_stack.h24420644editdlrm
zend_stream.h36410644editdlrm
zend_string.h226930644editdlrm
zend_strtod.h23440644editdlrm
zend_strtod_int.h28740644editdlrm
zend_system_id.h14240644editdlrm
zend_types.h522850644editdlrm
zend_type_info.h45440644editdlrm
zend_variables.h30880644editdlrm
zend_verify_type_inference.h82620644editdlrm
zend_virtual_cwd.h132170644editdlrm
zend_vm.h21120644editdlrm
zend_vm_def.h3028090644editdlrm
zend_vm_execute.h22780090644editdlrm
zend_vm_handlers.h927110644editdlrm
zend_vm_opcodes.h138190644editdlrm
zend_vm_trace_handlers.h32160644editdlrm
zend_vm_trace_lines.h17550644editdlrm
zend_vm_trace_map.h26650644editdlrm
zend_weakrefs.h32260644editdlrm
zend_weakrefs_arginfo.h34400644editdlrm
Edit: /opt/cpanel/ea-php84/root/usr/include/php/Zend/zend_objects_API.h (5607B)
/* +----------------------------------------------------------------------+ | Zend Engine | +----------------------------------------------------------------------+ | Copyright (c) Zend Technologies Ltd. (http://www.zend.com) | +----------------------------------------------------------------------+ | This source file is subject to version 2.00 of the Zend license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.zend.com/license/2_00.txt. | | If you did not receive a copy of the Zend license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@zend.com so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Andi Gutmans | | Zeev Suraski | +----------------------------------------------------------------------+ */ #ifndef ZEND_OBJECTS_API_H #define ZEND_OBJECTS_API_H #include "zend_types.h" #include "zend_gc.h" #include "zend_alloc.h" #include "zend_compile.h" /* For zend_property_info */ #define OBJ_BUCKET_INVALID (1<<0) #define IS_OBJ_VALID(o) (!(((uintptr_t)(o)) & OBJ_BUCKET_INVALID)) #define SET_OBJ_INVALID(o) ((zend_object*)((((uintptr_t)(o)) | OBJ_BUCKET_INVALID))) #define GET_OBJ_BUCKET_NUMBER(o) (((intptr_t)(o)) >> 1) #define SET_OBJ_BUCKET_NUMBER(o, n) do { \ (o) = (zend_object*)((((uintptr_t)(n)) << 1) | OBJ_BUCKET_INVALID); \ } while (0) #define ZEND_OBJECTS_STORE_ADD_TO_FREE_LIST(h) do { \ SET_OBJ_BUCKET_NUMBER(EG(objects_store).object_buckets[(h)], EG(objects_store).free_list_head); \ EG(objects_store).free_list_head = (h); \ } while (0) #define OBJ_RELEASE(obj) zend_object_release(obj) typedef struct _zend_objects_store { zend_object **object_buckets; uint32_t top; uint32_t size; int free_list_head; } zend_objects_store; /* Global store handling functions */ BEGIN_EXTERN_C() ZEND_API void ZEND_FASTCALL zend_objects_store_init(zend_objects_store *objects, uint32_t init_size); ZEND_API void ZEND_FASTCALL zend_objects_store_call_destructors(zend_objects_store *objects); ZEND_API void ZEND_FASTCALL zend_objects_store_mark_destructed(zend_objects_store *objects); ZEND_API void ZEND_FASTCALL zend_objects_store_free_object_storage(zend_objects_store *objects, bool fast_shutdown); ZEND_API void ZEND_FASTCALL zend_objects_store_destroy(zend_objects_store *objects); /* Store API functions */ ZEND_API void ZEND_FASTCALL zend_objects_store_put(zend_object *object); ZEND_API void ZEND_FASTCALL zend_objects_store_del(zend_object *object); /* Called when the ctor was terminated by an exception */ static zend_always_inline void zend_object_store_ctor_failed(zend_object *obj) { GC_ADD_FLAGS(obj, IS_OBJ_DESTRUCTOR_CALLED); } END_EXTERN_C() static zend_always_inline void zend_object_release(zend_object *obj) { if (GC_DELREF(obj) == 0) { zend_objects_store_del(obj); } else if (UNEXPECTED(GC_MAY_LEAK((zend_refcounted*)obj))) { gc_possible_root((zend_refcounted*)obj); } } static zend_always_inline size_t zend_object_properties_size(zend_class_entry *ce) { return sizeof(zval) * (ce->default_properties_count - ((ce->ce_flags & ZEND_ACC_USE_GUARDS) ? 0 : 1)); } /* Allocates object type and zeros it, but not the standard zend_object and properties. * Standard object MUST be initialized using zend_object_std_init(). * Properties MUST be initialized using object_properties_init(). */ static zend_always_inline void *zend_object_alloc(size_t obj_size, zend_class_entry *ce) { void *obj = emalloc(obj_size + zend_object_properties_size(ce)); memset(obj, 0, obj_size - sizeof(zend_object)); return obj; } ZEND_API ZEND_COLD zend_property_info *zend_get_property_info_for_slot_slow(zend_object *obj, zval *slot); /* Use when 'slot' was obtained directly from obj->properties_table, or when * 'obj' can not be lazy. Otherwise, use zend_get_property_info_for_slot(). */ static inline zend_property_info *zend_get_property_info_for_slot_self(zend_object *obj, zval *slot) { zend_property_info **table = obj->ce->properties_info_table; intptr_t prop_num = slot - obj->properties_table; ZEND_ASSERT(prop_num >= 0 && prop_num < obj->ce->default_properties_count); if (table[prop_num]) { return table[prop_num]; } else { return zend_get_property_info_for_slot_slow(obj, slot); } } static inline zend_property_info *zend_get_property_info_for_slot(zend_object *obj, zval *slot) { if (UNEXPECTED(zend_object_is_lazy_proxy(obj))) { return zend_lazy_object_get_property_info_for_slot(obj, slot); } zend_property_info **table = obj->ce->properties_info_table; intptr_t prop_num = slot - obj->properties_table; ZEND_ASSERT(prop_num >= 0 && prop_num < obj->ce->default_properties_count); if (table[prop_num]) { return table[prop_num]; } else { return zend_get_property_info_for_slot_slow(obj, slot); } } /* Helper for cases where we're only interested in property info of typed properties. */ static inline zend_property_info *zend_get_typed_property_info_for_slot(zend_object *obj, zval *slot) { zend_property_info *prop_info = zend_get_property_info_for_slot(obj, slot); if (prop_info && ZEND_TYPE_IS_SET(prop_info->type)) { return prop_info; } return NULL; } #endif /* ZEND_OBJECTS_H */