Home
last modified time | relevance | path

Searched refs:zobj (Results 1 – 25 of 33) sorted by relevance

12

/PHP-8.1/Zend/
H A Dzend_object_handlers.c140 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()
534 zv = zobj->properties_table + zobj->ce->default_properties_count; in zend_get_property_guard()
664 GC_ADDREF(zobj); in zend_std_read_property()
692 GC_ADDREF(zobj); in zend_std_read_property()
827 zobj->properties = zend_array_dup(zobj->properties); in zend_std_write_property()
844 GC_ADDREF(zobj); in zend_std_write_property()
1057 zobj->properties = zend_array_dup(zobj->properties); in zend_std_get_property_ptr_ptr()
1133 zobj->properties = zend_array_dup(zobj->properties); in zend_std_unset_property()
1809 GC_ADDREF(zobj); in zend_std_has_property()
[all …]
H A Dzend_enum.h44 static zend_always_inline zval *zend_enum_fetch_case_name(zend_object *zobj) in zend_enum_fetch_case_name() argument
46 ZEND_ASSERT(zobj->ce->ce_flags & ZEND_ACC_ENUM); in zend_enum_fetch_case_name()
47 return OBJ_PROP_NUM(zobj, 0); in zend_enum_fetch_case_name()
50 static zend_always_inline zval *zend_enum_fetch_case_value(zend_object *zobj) in zend_enum_fetch_case_value() argument
52 ZEND_ASSERT(zobj->ce->ce_flags & ZEND_ACC_ENUM); in zend_enum_fetch_case_value()
53 ZEND_ASSERT(zobj->ce->enum_backing_type != IS_UNDEF); in zend_enum_fetch_case_value()
54 return OBJ_PROP_NUM(zobj, 1); in zend_enum_fetch_case_value()
H A Dzend_vm_execute.h4746 ce = zobj->ce; in ZEND_CLONE_SPEC_CONST_HANDLER()
5036 properties = zobj->handlers->get_properties(zobj); in ZEND_FE_RESET_R_SPEC_CONST_HANDLER()
19132 properties = zobj->handlers->get_properties(zobj); in ZEND_FE_RESET_R_SPEC_TMP_HANDLER()
21794 properties = zobj->handlers->get_properties(zobj); in ZEND_FE_RESET_R_SPEC_VAR_HANDLER()
22972 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CONST_HANDLER()
23103 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_TMP_HANDLER()
23234 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_VAR_HANDLER()
23365 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CV_HANDLER()
25671 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_TMPVAR_OP_DATA_CONST_HANDLER()
25802 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_TMPVAR_OP_DATA_TMP_HANDLER()
[all …]
H A Dzend_object_handlers.h223 ZEND_API zend_string *zend_std_get_class_name(const zend_object *zobj);
226 ZEND_API void rebuild_object_properties(zend_object *zobj);
228 ZEND_API HashTable *zend_std_build_object_properties_array(zend_object *zobj);
236 ZEND_API int zend_check_property_access(zend_object *zobj, zend_string *prop_info_name, bool is_dyn…
240 ZEND_API uint32_t *zend_get_property_guard(zend_object *zobj, zend_string *member);
H A Dzend_enum.c39 zend_object *zobj = zend_objects_new(ce); in zend_enum_new() local
40 ZVAL_OBJ(result, zobj); in zend_enum_new()
42 ZVAL_STR_COPY(OBJ_PROP_NUM(zobj, 0), case_name); in zend_enum_new()
44 ZVAL_COPY(OBJ_PROP_NUM(zobj, 1), backing_value_zv); in zend_enum_new()
47 zobj->handlers = &enum_handlers; in zend_enum_new()
49 return zobj; in zend_enum_new()
H A Dzend_vm_def.h1014 zend_object *zobj; variable
1039 zobj = Z_OBJ_P(object);
1288 zend_object *zobj; variable
1361 zend_object *zobj; variable
2378 zend_object *zobj; variable
2428 zobj->properties = zend_array_dup(zobj->properties);
5800 zend_object *zobj; variable
5830 zobj = Z_OBJ_P(obj);
5831 ce = zobj->ce;
6625 properties = zobj->handlers->get_properties(zobj);
[all …]
H A Dzend_builtin_functions.c740 zend_object *zobj; in ZEND_FUNCTION() local
744 Z_PARAM_OBJ(zobj) in ZEND_FUNCTION()
747 properties = zobj->handlers->get_properties(zobj); in ZEND_FUNCTION()
752 …if (!zobj->ce->default_properties_count && properties == zobj->properties && !GC_IS_RECURSIVE(prop… in ZEND_FUNCTION()
754 if (EXPECTED(zobj->handlers == &std_object_handlers)) { in ZEND_FUNCTION()
772 if (key && zend_check_property_access(zobj, key, is_dynamic) == FAILURE) { in ZEND_FUNCTION()
H A Dzend_execute.c3093 zend_object *zobj; in zend_fetch_property_address() local
3121 zobj = Z_OBJ_P(container); in zend_fetch_property_address()
3123 EXPECTED(zobj->ce == CACHED_PTR_EX(cache_slot))) { in zend_fetch_property_address()
3127 ptr = OBJ_PROP(zobj, prop_offset); in zend_fetch_property_address()
3151 } else if (EXPECTED(zobj->properties != NULL)) { in zend_fetch_property_address()
3152 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_fetch_property_address()
3153 if (EXPECTED(!(GC_FLAGS(zobj->properties) & IS_ARRAY_IMMUTABLE))) { in zend_fetch_property_address()
3154 GC_DELREF(zobj->properties); in zend_fetch_property_address()
3156 zobj->properties = zend_array_dup(zobj->properties); in zend_fetch_property_address()
3171 ptr = zobj->handlers->get_property_ptr_ptr(zobj, name, type, cache_slot); in zend_fetch_property_address()
[all …]
H A Dzend.c495 zend_object *zobj = Z_OBJ_P(expr); in zend_print_zval_r_to_buf() local
496 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(zobj); in zend_print_zval_r_to_buf()
500 if (!(zobj->ce->ce_flags & ZEND_ACC_ENUM)) { in zend_print_zval_r_to_buf()
504 if (zobj->ce->enum_backing_type != IS_UNDEF) { in zend_print_zval_r_to_buf()
506 smart_str_appends(buf, zend_get_type_by_const(zobj->ce->enum_backing_type)); in zend_print_zval_r_to_buf()
H A Dzend_API.h2079 zend_object *zobj = Z_OBJ_P(arg); in zend_parse_arg_array_ht() local
2081 && zobj->properties in zend_parse_arg_array_ht()
2082 && UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_parse_arg_array_ht()
2083 if (EXPECTED(!(GC_FLAGS(zobj->properties) & IS_ARRAY_IMMUTABLE))) { in zend_parse_arg_array_ht()
2084 GC_DELREF(zobj->properties); in zend_parse_arg_array_ht()
2086 zobj->properties = zend_array_dup(zobj->properties); in zend_parse_arg_array_ht()
2088 *dest = zobj->handlers->get_properties(zobj); in zend_parse_arg_array_ht()
/PHP-8.1/ext/pspell/
H A Dpspell.c81 return ((php_pspell_object*)(zobj + 1)) - 1; in php_pspell_object_from_zend_object()
100 zend_object_std_init(zobj, ce); in php_pspell_object_create()
101 object_properties_init(zobj, ce); in php_pspell_object_create()
102 zobj->handlers = &php_pspell_handlers; in php_pspell_object_create()
104 return zobj; in php_pspell_object_create()
107 static void php_pspell_object_free(zend_object *zobj) { in php_pspell_object_free() argument
119 return ((php_pspell_config_object*)(zobj + 1)) - 1; in php_pspell_config_object_from_zend_object()
138 zend_object_std_init(zobj, ce); in php_pspell_config_object_create()
139 object_properties_init(zobj, ce); in php_pspell_config_object_create()
140 zobj->handlers = &php_pspell_config_handlers; in php_pspell_config_object_create()
[all …]
/PHP-8.1/ext/gmp/
H A Dphp_gmp_int.h24 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()
H A Dgmp.c475 zend_object *zobj; in gmp_unserialize() local
480 zobj = Z_OBJ_P(object); in gmp_unserialize()
504 zend_std_get_properties(zobj), Z_ARRVAL_P(zv), in gmp_unserialize()
/PHP-8.1/ext/opcache/jit/
H A Dzend_jit_helpers.c2839 GC_ADDREF(zobj); in zend_jit_pre_inc_obj_helper()
2854 zobj->handlers->write_property(zobj, name, &z_copy, cache_slot); in zend_jit_pre_inc_obj_helper()
2855 OBJ_RELEASE(zobj); in zend_jit_pre_inc_obj_helper()
2909 GC_ADDREF(zobj); in zend_jit_pre_dec_obj_helper()
2924 zobj->handlers->write_property(zobj, name, &z_copy, cache_slot); in zend_jit_pre_dec_obj_helper()
2925 OBJ_RELEASE(zobj); in zend_jit_pre_dec_obj_helper()
2974 GC_ADDREF(zobj); in zend_jit_post_inc_obj_helper()
2985 zobj->handlers->write_property(zobj, name, &z_copy, cache_slot); in zend_jit_post_inc_obj_helper()
2986 OBJ_RELEASE(zobj); in zend_jit_post_inc_obj_helper()
3035 GC_ADDREF(zobj); in zend_jit_post_dec_obj_helper()
[all …]
/PHP-8.1/ext/com_dotnet/
H A Dcom_variant.c497 zval *zobj, *zvalue = NULL; in PHP_FUNCTION() local
505 obj = CDNO_FETCH(zobj); in PHP_FUNCTION()
1003 zval *zobj; in PHP_FUNCTION() local
1007 "O", &zobj, php_com_variant_class_entry)) { in PHP_FUNCTION()
1010 obj = CDNO_FETCH(zobj); in PHP_FUNCTION()
1019 zval *zobj; in PHP_FUNCTION() local
1025 "Ol", &zobj, php_com_variant_class_entry, &vt)) { in PHP_FUNCTION()
1028 obj = CDNO_FETCH(zobj); in PHP_FUNCTION()
1053 zval *zobj; in PHP_FUNCTION() local
1060 "Ol", &zobj, php_com_variant_class_entry, &vt)) { in PHP_FUNCTION()
[all …]
H A Dcom_persist.c638 zval *zobj = NULL; in CPH_METHOD() local
642 &zobj, php_com_variant_class_entry)) { in CPH_METHOD()
646 if (!zobj) { in CPH_METHOD()
650 obj = CDNO_FETCH(zobj); in CPH_METHOD()
/PHP-8.1/ext/ftp/
H A Dphp_ftp.c69 static inline php_ftp_object *ftp_object_from_zend_object(zend_object *zobj) { in ftp_object_from_zend_object() argument
70 return ((php_ftp_object*)(zobj + 1)) - 1; in ftp_object_from_zend_object()
75 zend_object *zobj = ftp_object_to_zend_object(obj); in ftp_object_create() local
77 zend_object_std_init(zobj, ce); in ftp_object_create()
78 object_properties_init(zobj, ce); in ftp_object_create()
79 zobj->handlers = &ftp_object_handlers; in ftp_object_create()
81 return zobj; in ftp_object_create()
84 static zend_function *ftp_object_get_constructor(zend_object *zobj) { in ftp_object_get_constructor() argument
89 static void ftp_object_destroy(zend_object *zobj) { in ftp_object_destroy() argument
90 php_ftp_object *obj = ftp_object_from_zend_object(zobj); in ftp_object_destroy()
[all …]
/PHP-8.1/ext/fileinfo/
H A Dfileinfo.c264 zend_object *zobj = finfo_objects_new(finfo_class_entry); in PHP_FUNCTION() local
265 finfo_object *obj = php_finfo_fetch_object(zobj); in PHP_FUNCTION()
267 RETURN_OBJ(zobj); in PHP_FUNCTION()
/PHP-8.1/
H A D.gdbinit210 set $zobj = $zvalue->value.obj
211 set $cname = $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.1/ext/hash/
H A Dhash.c1374 zend_object *zobj = &objval->std; in php_hashcontext_create() local
1376 zend_object_std_init(zobj, ce); in php_hashcontext_create()
1377 object_properties_init(zobj, ce); in php_hashcontext_create()
1378 zobj->handlers = &php_hashcontext_handlers; in php_hashcontext_create()
1380 return zobj; in php_hashcontext_create()
1407 static zend_object *php_hashcontext_clone(zend_object *zobj) { in php_hashcontext_clone() argument
1408 php_hashcontext_object *oldobj = php_hashcontext_from_object(zobj); in php_hashcontext_clone()
1409 zend_object *znew = php_hashcontext_create(zobj->ce); in php_hashcontext_clone()
1417 zend_objects_clone_members(znew, zobj); in php_hashcontext_clone()
/PHP-8.1/ext/intl/converter/
H A Dconverter.c64 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.1/ext/phar/
H A Dphar_object.c1107 zval *zobj = ZEND_THIS, arg1, arg2; in PHP_METHOD() local
1109 phar_obj = (phar_archive_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD()
1211 Z_OBJ_P(zobj), NULL, &arg1, &arg2); in PHP_METHOD()
1339 zval *zobj = ZEND_THIS; \
1350 zval *zobj = ZEND_THIS; in PHP_METHOD() local
4408 zval *zobj = ZEND_THIS, arg1; in PHP_METHOD() local
4414 entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD()
4457 Z_OBJ_P(zobj), NULL, &arg1); in PHP_METHOD()
4464 zval *zobj = ZEND_THIS; \
4475 zval *zobj = ZEND_THIS; in PHP_METHOD() local
[all …]
/PHP-8.1/ext/gd/
H A Dgd.c250 static php_gd_font_object *php_gd_font_object_from_zend_object(zend_object *zobj) in php_gd_font_object_from_zend_object() argument
252 return ((php_gd_font_object*)(zobj + 1)) - 1; in php_gd_font_object_from_zend_object()
263 zend_object *zobj = php_gd_font_object_to_zend_object(obj); in php_gd_font_object_create() local
266 zend_object_std_init(zobj, ce); in php_gd_font_object_create()
267 object_properties_init(zobj, ce); in php_gd_font_object_create()
268 zobj->handlers = &php_gd_font_object_handlers; in php_gd_font_object_create()
270 return zobj; in php_gd_font_object_create()
273 static void php_gd_font_object_free(zend_object *zobj) in php_gd_font_object_free() argument
275 php_gd_font_object *obj = php_gd_font_object_from_zend_object(zobj); in php_gd_font_object_free()
285 zend_object_std_dtor(zobj); in php_gd_font_object_free()
/PHP-8.1/ext/imap/
H A Dphp_imap.c156 static inline php_imap_object *imap_object_from_zend_object(zend_object *zobj) { in imap_object_from_zend_object() argument
157 return ((php_imap_object*)(zobj + 1)) - 1; in imap_object_from_zend_object()
162 zend_object *zobj = imap_object_to_zend_object(obj); in imap_object_create() local
165 zend_object_std_init(zobj, ce); in imap_object_create()
166 object_properties_init(zobj, ce); in imap_object_create()
167 zobj->handlers = &imap_object_handlers; in imap_object_create()
169 return zobj; in imap_object_create()
172 static zend_function *imap_object_get_constructor(zend_object *zobj) { in imap_object_get_constructor() argument
177 static void imap_object_destroy(zend_object *zobj) { in imap_object_destroy() argument
178 php_imap_object *obj = imap_object_from_zend_object(zobj); in imap_object_destroy()
[all …]
/PHP-8.1/ext/standard/
H A Darray.c1075 zend_object *zobj = Z_OBJ_P(zv); in get_ht_for_iap() local
1076 if (separate && zobj->properties && UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in get_ht_for_iap()
1077 if (EXPECTED(!(GC_FLAGS(zobj->properties) & IS_ARRAY_IMMUTABLE))) { in get_ht_for_iap()
1078 GC_DELREF(zobj->properties); in get_ht_for_iap()
1080 zobj->properties = zend_array_dup(zobj->properties); in get_ht_for_iap()
1082 return zobj->handlers->get_properties(zobj); in get_ht_for_iap()

Completed in 380 milliseconds

12