/PHP-8.3/Zend/ |
H A D | zend_object_handlers.c | 140 return zobj->handlers->get_properties(zobj); in zend_std_get_gc() 205 zend_call_known_instance_method(zobj->ce->__set, zobj, NULL, 2, args); in zend_std_call_setter() 547 return zobj->properties_table + zobj->ce->default_properties_count; in zend_get_guard_value() 698 GC_ADDREF(zobj); in zend_std_read_property() 726 GC_ADDREF(zobj); in zend_std_read_property() 893 zobj->properties = zend_array_dup(zobj->properties); in zend_std_write_property() 910 GC_ADDREF(zobj); in zend_std_write_property() 1146 zobj->properties = zend_array_dup(zobj->properties); in zend_std_get_property_ptr_ptr() 1229 zobj->properties = zend_array_dup(zobj->properties); in zend_std_unset_property() 1894 GC_ADDREF(zobj); in zend_std_has_property() [all …]
|
H A D | zend_enum.h | 49 static zend_always_inline zval *zend_enum_fetch_case_name(zend_object *zobj) in zend_enum_fetch_case_name() argument 51 ZEND_ASSERT(zobj->ce->ce_flags & ZEND_ACC_ENUM); in zend_enum_fetch_case_name() 52 return OBJ_PROP_NUM(zobj, 0); in zend_enum_fetch_case_name() 55 static zend_always_inline zval *zend_enum_fetch_case_value(zend_object *zobj) in zend_enum_fetch_case_value() argument 57 ZEND_ASSERT(zobj->ce->ce_flags & ZEND_ACC_ENUM); in zend_enum_fetch_case_value() 58 ZEND_ASSERT(zobj->ce->enum_backing_type != IS_UNDEF); in zend_enum_fetch_case_value() 59 return OBJ_PROP_NUM(zobj, 1); in zend_enum_fetch_case_value()
|
H A D | zend_object_handlers.h | 225 ZEND_API zend_string *zend_std_get_class_name(const zend_object *zobj); 228 ZEND_API void rebuild_object_properties(zend_object *zobj); 230 ZEND_API HashTable *zend_std_build_object_properties_array(zend_object *zobj); 238 ZEND_API zend_result zend_check_property_access(const zend_object *zobj, zend_string *prop_info_nam… 242 ZEND_API uint32_t *zend_get_property_guard(zend_object *zobj, zend_string *member); 244 ZEND_API uint32_t *zend_get_property_guard(zend_object *zobj, zend_string *member); 246 ZEND_API uint32_t *zend_get_recursion_guard(zend_object *zobj);
|
H A D | zend_vm_execute.h | 4856 ce = zobj->ce; in ZEND_CLONE_SPEC_CONST_HANDLER() 5172 properties = zobj->handlers->get_properties(zobj); in ZEND_FE_RESET_R_SPEC_CONST_HANDLER() 19539 properties = zobj->handlers->get_properties(zobj); in ZEND_FE_RESET_R_SPEC_TMP_HANDLER() 22209 properties = zobj->handlers->get_properties(zobj); in ZEND_FE_RESET_R_SPEC_VAR_HANDLER() 23423 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CONST_HANDLER() 23557 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_TMP_HANDLER() 23691 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_VAR_HANDLER() 23825 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CV_HANDLER() 26349 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_TMPVAR_OP_DATA_CONST_HANDLER() 26483 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_TMPVAR_OP_DATA_TMP_HANDLER() [all …]
|
H A D | zend_vm_def.h | 1017 zend_object *zobj; variable 1042 zobj = Z_OBJ_P(object); 1291 zend_object *zobj; variable 1364 zend_object *zobj; variable 2389 zend_object *zobj; variable 2439 zobj->properties = zend_array_dup(zobj->properties); 5836 zend_object *zobj; variable 5866 zobj = Z_OBJ_P(obj); 5867 ce = zobj->ce; 6742 properties = zobj->handlers->get_properties(zobj); [all …]
|
H A D | zend_enum.c | 41 zend_object *zobj = zend_objects_new(ce); in zend_enum_new() local 42 ZVAL_OBJ(result, zobj); in zend_enum_new() 44 zval *zname = OBJ_PROP_NUM(zobj, 0); in zend_enum_new() 50 zval *prop = OBJ_PROP_NUM(zobj, 1); in zend_enum_new() 57 return zobj; in zend_enum_new()
|
H A D | zend.c | 553 zend_object *zobj = Z_OBJ_P(expr); in zend_print_zval_r_to_buf() local 554 uint32_t *guard = zend_get_recursion_guard(zobj); in zend_print_zval_r_to_buf() 555 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(zobj); in zend_print_zval_r_to_buf() 559 if (!(zobj->ce->ce_flags & ZEND_ACC_ENUM)) { in zend_print_zval_r_to_buf() 563 if (zobj->ce->enum_backing_type != IS_UNDEF) { in zend_print_zval_r_to_buf() 565 smart_str_appends(buf, zend_get_type_by_const(zobj->ce->enum_backing_type)); in zend_print_zval_r_to_buf() 570 if (ZEND_GUARD_OR_GC_IS_RECURSIVE(guard, DEBUG, zobj)) { in zend_print_zval_r_to_buf() 580 ZEND_GUARD_OR_GC_PROTECT_RECURSION(guard, DEBUG, zobj); in zend_print_zval_r_to_buf() 582 ZEND_GUARD_OR_GC_UNPROTECT_RECURSION(guard, DEBUG, zobj); in zend_print_zval_r_to_buf()
|
H A D | zend_builtin_functions.c | 760 zend_object *zobj; in ZEND_FUNCTION() local 764 Z_PARAM_OBJ(zobj) in ZEND_FUNCTION() 767 properties = zobj->handlers->get_properties(zobj); in ZEND_FUNCTION() 772 …if (!zobj->ce->default_properties_count && properties == zobj->properties && !GC_IS_RECURSIVE(prop… in ZEND_FUNCTION() 774 if (EXPECTED(zobj->handlers == &std_object_handlers)) { in ZEND_FUNCTION() 792 if (key && zend_check_property_access(zobj, key, is_dynamic) == FAILURE) { in ZEND_FUNCTION()
|
H A D | zend_types.h | 887 #define ZEND_GUARD_OR_GC_IS_RECURSIVE(pg, t, zobj) \ argument 888 (pg ? ZEND_GUARD_IS_RECURSIVE(pg, t) : GC_IS_RECURSIVE(zobj)) 890 #define ZEND_GUARD_OR_GC_PROTECT_RECURSION(pg, t, zobj) do { \ argument 894 GC_PROTECT_RECURSION(zobj); \ 898 #define ZEND_GUARD_OR_GC_UNPROTECT_RECURSION(pg, t, zobj) do { \ argument 902 GC_UNPROTECT_RECURSION(zobj); \
|
H A D | zend_execute.c | 3161 zend_object *zobj; in zend_fetch_property_address() local 3189 zobj = Z_OBJ_P(container); in zend_fetch_property_address() 3191 EXPECTED(zobj->ce == CACHED_PTR_EX(cache_slot))) { in zend_fetch_property_address() 3195 ptr = OBJ_PROP(zobj, prop_offset); in zend_fetch_property_address() 3222 } else if (EXPECTED(zobj->properties != NULL)) { in zend_fetch_property_address() 3223 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_fetch_property_address() 3225 GC_DELREF(zobj->properties); in zend_fetch_property_address() 3227 zobj->properties = zend_array_dup(zobj->properties); in zend_fetch_property_address() 3238 ZEND_ASSERT(zobj->handlers->get_property_ptr_ptr != NULL); in zend_fetch_property_address() 3245 ptr = zobj->handlers->get_property_ptr_ptr(zobj, name, type, cache_slot); in zend_fetch_property_address() [all …]
|
H A D | zend_attributes.c | 143 static HashTable *attributes_sensitive_parameter_value_get_properties_for(zend_object *zobj, zend_p… in attributes_sensitive_parameter_value_get_properties_for() argument
|
/PHP-8.3/ext/pspell/ |
H A D | pspell.c | 82 return ((php_pspell_object*)(zobj + 1)) - 1; in php_pspell_object_from_zend_object() 101 zend_object_std_init(zobj, ce); in php_pspell_object_create() 102 object_properties_init(zobj, ce); in php_pspell_object_create() 103 zobj->handlers = &php_pspell_handlers; in php_pspell_object_create() 105 return zobj; in php_pspell_object_create() 108 static void php_pspell_object_free(zend_object *zobj) { in php_pspell_object_free() argument 120 return ((php_pspell_config_object*)(zobj + 1)) - 1; in php_pspell_config_object_from_zend_object() 139 zend_object_std_init(zobj, ce); in php_pspell_config_object_create() 140 object_properties_init(zobj, ce); in php_pspell_config_object_create() 141 zobj->handlers = &php_pspell_config_handlers; in php_pspell_config_object_create() [all …]
|
/PHP-8.3/ext/gmp/ |
H A D | php_gmp_int.h | 24 static inline gmp_object *php_gmp_object_from_zend_object(zend_object *zobj) { in php_gmp_object_from_zend_object() argument 25 return (gmp_object *)( ((char *)zobj) - XtOffsetOf(gmp_object, std) ); in php_gmp_object_from_zend_object()
|
/PHP-8.3/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 2907 GC_ADDREF(zobj); in zend_jit_pre_inc_obj_helper() 2922 zobj->handlers->write_property(zobj, name, &z_copy, cache_slot); in zend_jit_pre_inc_obj_helper() 2923 OBJ_RELEASE(zobj); in zend_jit_pre_inc_obj_helper() 2977 GC_ADDREF(zobj); in zend_jit_pre_dec_obj_helper() 2992 zobj->handlers->write_property(zobj, name, &z_copy, cache_slot); in zend_jit_pre_dec_obj_helper() 2993 OBJ_RELEASE(zobj); in zend_jit_pre_dec_obj_helper() 3042 GC_ADDREF(zobj); in zend_jit_post_inc_obj_helper() 3053 zobj->handlers->write_property(zobj, name, &z_copy, cache_slot); in zend_jit_post_inc_obj_helper() 3054 OBJ_RELEASE(zobj); in zend_jit_post_inc_obj_helper() 3103 GC_ADDREF(zobj); in zend_jit_post_dec_obj_helper() [all …]
|
/PHP-8.3/ext/standard/ |
H A D | var.c | 156 zend_object *zobj = Z_OBJ_P(struc); in php_var_dump() local 157 uint32_t *guard = zend_get_recursion_guard(zobj); in php_var_dump() 158 if (ZEND_GUARD_OR_GC_IS_RECURSIVE(guard, DEBUG, zobj)) { in php_var_dump() 162 ZEND_GUARD_OR_GC_PROTECT_RECURSION(guard, DEBUG, zobj); in php_var_dump() 351 zend_object *zobj = Z_OBJ_P(struc); in php_debug_zval_dump() local 352 uint32_t *guard = zend_get_recursion_guard(zobj); in php_debug_zval_dump() 353 if (ZEND_GUARD_OR_GC_IS_RECURSIVE(guard, DEBUG, zobj)) { in php_debug_zval_dump() 357 ZEND_GUARD_OR_GC_PROTECT_RECURSION(guard, DEBUG, zobj); in php_debug_zval_dump() 565 zend_object *zobj = Z_OBJ_P(struc); in php_var_export_ex() local 566 uint32_t *guard = zend_get_recursion_guard(zobj); in php_var_export_ex() [all …]
|
H A D | array.c | 670 zend_object *zobj = Z_OBJ_P(array); in PHP_FUNCTION() local 671 if (zobj->handlers->count_elements) { in PHP_FUNCTION() 673 if (SUCCESS == zobj->handlers->count_elements(zobj, &Z_LVAL_P(return_value))) { in PHP_FUNCTION() 681 if (instanceof_function(zobj->ce, zend_ce_countable)) { in PHP_FUNCTION() 683 zend_call_known_instance_method_with_0_params(count_fn, zobj, &retval); in PHP_FUNCTION() 1022 zend_object *zobj = Z_OBJ_P(zv); in get_ht_for_iap() local 1023 if (separate && zobj->properties && UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in get_ht_for_iap() 1024 if (EXPECTED(!(GC_FLAGS(zobj->properties) & IS_ARRAY_IMMUTABLE))) { in get_ht_for_iap() 1025 GC_DELREF(zobj->properties); in get_ht_for_iap() 1027 zobj->properties = zend_array_dup(zobj->properties); in get_ht_for_iap() [all …]
|
/PHP-8.3/ext/com_dotnet/ |
H A D | com_variant.c | 507 zval *zobj, *zvalue = NULL; in PHP_FUNCTION() local 515 obj = CDNO_FETCH(zobj); in PHP_FUNCTION() 1013 zval *zobj; in PHP_FUNCTION() local 1017 "O", &zobj, php_com_variant_class_entry)) { in PHP_FUNCTION() 1020 obj = CDNO_FETCH(zobj); in PHP_FUNCTION() 1029 zval *zobj; in PHP_FUNCTION() local 1036 "Ol", &zobj, php_com_variant_class_entry, &vt)) { in PHP_FUNCTION() 1039 obj = CDNO_FETCH(zobj); in PHP_FUNCTION() 1069 zval *zobj; in PHP_FUNCTION() local 1076 "Ol", &zobj, php_com_variant_class_entry, &vt)) { in PHP_FUNCTION() [all …]
|
H A D | com_persist.c | 633 zval *zobj = NULL; in CPH_METHOD() local 637 &zobj, php_com_variant_class_entry)) { in CPH_METHOD() 641 if (!zobj) { in CPH_METHOD() 645 obj = CDNO_FETCH(zobj); in CPH_METHOD()
|
/PHP-8.3/ext/ftp/ |
H A D | php_ftp.c | 70 static inline php_ftp_object *ftp_object_from_zend_object(zend_object *zobj) { in ftp_object_from_zend_object() argument 71 return ((php_ftp_object*)(zobj + 1)) - 1; in ftp_object_from_zend_object() 76 zend_object *zobj = ftp_object_to_zend_object(obj); in ftp_object_create() local 78 zend_object_std_init(zobj, ce); in ftp_object_create() 79 object_properties_init(zobj, ce); in ftp_object_create() 80 zobj->handlers = &ftp_object_handlers; in ftp_object_create() 82 return zobj; in ftp_object_create() 85 static zend_function *ftp_object_get_constructor(zend_object *zobj) { in ftp_object_get_constructor() argument 90 static void ftp_object_destroy(zend_object *zobj) { in ftp_object_destroy() argument 91 php_ftp_object *obj = ftp_object_from_zend_object(zobj); in ftp_object_destroy() [all …]
|
/PHP-8.3/ext/fileinfo/ |
H A D | fileinfo.c | 246 zend_object *zobj = finfo_objects_new(finfo_class_entry); in PHP_FUNCTION() local 247 finfo_object *obj = php_finfo_fetch_object(zobj); in PHP_FUNCTION() 249 RETURN_OBJ(zobj); in PHP_FUNCTION()
|
/PHP-8.3/ |
H A D | .gdbinit | 210 set $zobj = $zvalue->value.obj 211 set $cname = (char*)$zobj->ce->name->val 215 if $zobj->properties 217 set $ht = $zobj->properties 228 set $ht = &$zobj->ce->properties_info 235 set $val = (zval*)((char*)$zobj + $prop->offset)
|
/PHP-8.3/ext/hash/ |
H A D | hash.c | 1364 zend_object *zobj = &objval->std; in php_hashcontext_create() local 1366 zend_object_std_init(zobj, ce); in php_hashcontext_create() 1367 object_properties_init(zobj, ce); in php_hashcontext_create() 1368 zobj->handlers = &php_hashcontext_handlers; in php_hashcontext_create() 1370 return zobj; in php_hashcontext_create() 1397 static zend_object *php_hashcontext_clone(zend_object *zobj) { in php_hashcontext_clone() argument 1398 php_hashcontext_object *oldobj = php_hashcontext_from_object(zobj); in php_hashcontext_clone() 1399 zend_object *znew = php_hashcontext_create(zobj->ce); in php_hashcontext_clone() 1407 zend_objects_clone_members(znew, zobj); in php_hashcontext_clone()
|
/PHP-8.3/ext/intl/converter/ |
H A D | converter.c | 64 static void php_converter_default_callback(zval *return_value, zval *zobj, zend_long reason, zval *… in php_converter_default_callback() argument 71 php_converter_object *objval = (php_converter_object*)CONV_GET(zobj); in php_converter_default_callback() 506 static void php_converter_resolve_callback(zval *zobj, in php_converter_resolve_callback() argument 515 Z_ADDREF_P(zobj); in php_converter_resolve_callback() 516 add_index_zval(&caller, 0, zobj); in php_converter_resolve_callback()
|
/PHP-8.3/ext/phar/ |
H A D | phar_object.c | 1117 zval *zobj = ZEND_THIS, arg1, arg2; in PHP_METHOD() local 1119 phar_obj = (phar_archive_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD() 1221 Z_OBJ_P(zobj), NULL, &arg1, &arg2); in PHP_METHOD() 1352 zval *zobj = ZEND_THIS; \ 1363 zval *zobj = ZEND_THIS; in PHP_METHOD() local 4428 zval *zobj = ZEND_THIS, arg1; in PHP_METHOD() local 4434 entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD() 4477 Z_OBJ_P(zobj), NULL, &arg1); in PHP_METHOD() 4484 zval *zobj = ZEND_THIS; \ 4495 zval *zobj = ZEND_THIS; in PHP_METHOD() local [all …]
|
/PHP-8.3/ext/gd/ |
H A D | gd.c | 228 static php_gd_font_object *php_gd_font_object_from_zend_object(zend_object *zobj) in php_gd_font_object_from_zend_object() argument 230 return ((php_gd_font_object*)(zobj + 1)) - 1; in php_gd_font_object_from_zend_object() 241 zend_object *zobj = php_gd_font_object_to_zend_object(obj); in php_gd_font_object_create() local 244 zend_object_std_init(zobj, ce); in php_gd_font_object_create() 245 object_properties_init(zobj, ce); in php_gd_font_object_create() 246 zobj->handlers = &php_gd_font_object_handlers; in php_gd_font_object_create() 248 return zobj; in php_gd_font_object_create() 251 static void php_gd_font_object_free(zend_object *zobj) in php_gd_font_object_free() argument 253 php_gd_font_object *obj = php_gd_font_object_from_zend_object(zobj); in php_gd_font_object_free() 263 zend_object_std_dtor(zobj); in php_gd_font_object_free()
|