/php-src/Zend/ |
H A D | zend_object_handlers.c | 159 return zobj->handlers->get_properties(zobj); in zend_get_properties_no_lazy_init() 167 return zobj->handlers->get_properties(zobj); in zend_std_get_gc() 929 zobj = zend_lazy_object_init(zobj); in zend_std_read_property() 1063 zobj->properties = zend_array_dup(zobj->properties); in zend_std_write_property() 1192 zobj = zend_lazy_object_init(zobj); in zend_std_write_property() 1333 zobj = zend_lazy_object_init(zobj); in zend_std_get_property_ptr_ptr() 1391 zobj = zend_lazy_object_init(zobj); in zend_std_get_property_ptr_ptr() 1465 zobj = zend_lazy_object_init(zobj); in zend_std_unset_property() 1483 zobj->properties = zend_array_dup(zobj->properties); in zend_std_unset_property() 1518 zobj = zend_lazy_object_init(zobj); in zend_std_unset_property() [all …]
|
H A D | zend_property_hooks.c | 57 zend_class_entry *ce = zobj->ce; in zho_build_properties_ex() 59 ? zend_hash_num_elements(zobj->properties) in zho_build_properties_ex() 117 if (include_dynamic_props && zobj->properties) { in zho_build_properties_ex() 135 zobj = zend_lazy_object_init(zobj); in zend_hooked_object_build_properties() 136 if (UNEXPECTED(!zobj)) { in zend_hooked_object_build_properties() 147 zend_array *properties = zobj->handlers->get_properties(zobj); in zho_dynamic_it_init() 158 zend_object *zobj = Z_OBJ_P(&iter->data); in zho_declared_it_fetch_current() local 369 zend_object *zobj = Z_OBJ_P(object); in zend_hooked_object_get_iterator() local 371 zobj = zend_lazy_object_init(zobj); in zend_hooked_object_get_iterator() 372 if (UNEXPECTED(!zobj)) { in zend_hooked_object_get_iterator() [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_lazy_objects.c | 254 zval zobj; in zend_object_make_lazy() local 256 zend_result result = object_init_ex(&zobj, reflection_ce); in zend_object_make_lazy() 478 zval zobj; in zend_lazy_object_init_proxy() local 483 ZVAL_OBJ(&zobj, obj); in zend_lazy_object_init_proxy() 613 zval zobj; in zend_lazy_object_init() local 617 ZVAL_OBJ(&zobj, obj); in zend_lazy_object_init() 768 ZEND_ASSERT(zend_object_is_lazy(zobj)); in zend_lazy_object_get_gc() 773 if (zend_lazy_object_initialized(zobj)) { in zend_lazy_object_get_gc() 774 ZEND_ASSERT(zend_object_is_lazy_proxy(zobj)); in zend_lazy_object_get_gc() 792 zval *prop = zobj->properties_table; in zend_lazy_object_get_gc() [all …]
|
H A D | zend_object_handlers.h | 256 ZEND_API HashTable *zend_get_properties_no_lazy_init(zend_object *zobj); 270 ZEND_API zend_string *zend_std_get_class_name(const zend_object *zobj); 274 ZEND_API HashTable *rebuild_object_properties_internal(zend_object *zobj); 288 ZEND_API HashTable *zend_std_build_object_properties_array(zend_object *zobj); 309 ZEND_API zend_result zend_check_property_access(const zend_object *zobj, zend_string *prop_info_nam… 313 ZEND_API uint32_t *zend_get_property_guard(zend_object *zobj, zend_string *member); 315 ZEND_API uint32_t *zend_get_property_guard(zend_object *zobj, zend_string *member); 317 ZEND_API uint32_t *zend_get_recursion_guard(zend_object *zobj);
|
H A D | zend_vm_execute.h | 5426 zobj = zend_lazy_object_init(zobj); in ZEND_FE_RESET_R_SPEC_CONST_HANDLER() 5522 zobj = zend_lazy_object_init(zobj); in ZEND_FE_RESET_RW_SPEC_CONST_HANDLER() 20179 zobj = zend_lazy_object_init(zobj); in ZEND_FE_RESET_R_SPEC_TMP_HANDLER() 20276 zobj = zend_lazy_object_init(zobj); in ZEND_FE_RESET_RW_SPEC_TMP_HANDLER() 22848 zobj = zend_lazy_object_init(zobj); in ZEND_FE_RESET_R_SPEC_VAR_HANDLER() 22946 zobj = zend_lazy_object_init(zobj); in ZEND_FE_RESET_RW_SPEC_VAR_HANDLER() 24072 zobj = zend_lazy_object_init(zobj); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CONST_HANDLER() 24226 zobj = zend_lazy_object_init(zobj); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_TMP_HANDLER() 24380 zobj = zend_lazy_object_init(zobj); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_VAR_HANDLER() 41163 zobj = zend_lazy_object_init(zobj); in ZEND_FE_RESET_R_SPEC_CV_HANDLER() [all …]
|
H A D | zend_property_hooks.h | 38 ZEND_API zend_array *zend_hooked_object_build_properties(zend_object *zobj);
|
H A D | zend_lazy_objects.h | 76 HashTable *zend_lazy_object_get_gc(zend_object *zobj, zval **table, int *n);
|
H A D | zend_vm_def.h | 1018 zend_object *zobj; variable 1289 zend_object *zobj; variable 1359 zend_object *zobj; variable 2435 zend_object *zobj; variable 2481 zobj = zend_lazy_object_init(zobj); 2482 if (!zobj) { 2495 zobj->properties = zend_array_dup(zobj->properties); 5979 ce = zobj->ce; 6844 zobj = zend_lazy_object_init(zobj); 6860 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 | 562 zend_object *zobj = Z_OBJ_P(expr); in zend_print_zval_r_to_buf() local 563 uint32_t *guard = zend_get_recursion_guard(zobj); in zend_print_zval_r_to_buf() 564 zend_string *class_name = Z_OBJ_HANDLER_P(expr, get_class_name)(zobj); in zend_print_zval_r_to_buf() 568 if (!(zobj->ce->ce_flags & ZEND_ACC_ENUM)) { in zend_print_zval_r_to_buf() 572 if (zobj->ce->enum_backing_type != IS_UNDEF) { in zend_print_zval_r_to_buf() 574 smart_str_appends(buf, zend_get_type_by_const(zobj->ce->enum_backing_type)); in zend_print_zval_r_to_buf() 579 if (ZEND_GUARD_OR_GC_IS_RECURSIVE(guard, DEBUG, zobj)) { in zend_print_zval_r_to_buf() 589 ZEND_GUARD_OR_GC_PROTECT_RECURSION(guard, DEBUG, zobj); in zend_print_zval_r_to_buf() 591 ZEND_GUARD_OR_GC_UNPROTECT_RECURSION(guard, DEBUG, zobj); in zend_print_zval_r_to_buf()
|
H A D | zend_builtin_functions.c | 792 zend_object *zobj; in ZEND_FUNCTION() local 796 Z_PARAM_OBJ(zobj) in ZEND_FUNCTION() 800 ZVAL_OBJ(&obj_zv, zobj); in ZEND_FUNCTION() 806 …if (!zobj->ce->default_properties_count && properties == zobj->properties && !GC_IS_RECURSIVE(prop… in ZEND_FUNCTION() 808 bool always_duplicate = zobj->handlers != &std_object_handlers; in ZEND_FUNCTION() 828 if (key && zend_check_property_access(zobj, key, is_dynamic) == FAILURE) { in ZEND_FUNCTION() 843 zend_read_property_ex(prop_info->ce, zobj, unmangled_name, /* silent */ true, &tmp); in ZEND_FUNCTION()
|
H A D | zend_types.h | 891 #define ZEND_GUARD_OR_GC_IS_RECURSIVE(pg, t, zobj) \ argument 892 (pg ? ZEND_GUARD_IS_RECURSIVE(pg, t) : GC_IS_RECURSIVE(zobj)) 894 #define ZEND_GUARD_OR_GC_PROTECT_RECURSION(pg, t, zobj) do { \ argument 898 GC_PROTECT_RECURSION(zobj); \ 902 #define ZEND_GUARD_OR_GC_UNPROTECT_RECURSION(pg, t, zobj) do { \ argument 906 GC_UNPROTECT_RECURSION(zobj); \
|
/php-src/ext/gmp/ |
H A D | php_gmp_int.h | 26 static inline gmp_object *php_gmp_object_from_zend_object(zend_object *zobj) { in php_gmp_object_from_zend_object() argument 27 return (gmp_object *)( ((char *)zobj) - XtOffsetOf(gmp_object, std) ); in php_gmp_object_from_zend_object()
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 3091 GC_ADDREF(zobj); in zend_jit_pre_inc_obj_helper() 3106 zobj->handlers->write_property(zobj, name, &z_copy, cache_slot); in zend_jit_pre_inc_obj_helper() 3107 OBJ_RELEASE(zobj); in zend_jit_pre_inc_obj_helper() 3161 GC_ADDREF(zobj); in zend_jit_pre_dec_obj_helper() 3176 zobj->handlers->write_property(zobj, name, &z_copy, cache_slot); in zend_jit_pre_dec_obj_helper() 3177 OBJ_RELEASE(zobj); in zend_jit_pre_dec_obj_helper() 3226 GC_ADDREF(zobj); in zend_jit_post_inc_obj_helper() 3237 zobj->handlers->write_property(zobj, name, &z_copy, cache_slot); in zend_jit_post_inc_obj_helper() 3238 OBJ_RELEASE(zobj); in zend_jit_post_inc_obj_helper() 3287 GC_ADDREF(zobj); in zend_jit_post_dec_obj_helper() [all …]
|
/php-src/ext/dom/ |
H A D | html_collection.c | 34 static dom_named_item dom_html_collection_named_item(zend_string *key, zend_object *zobj) in dom_html_collection_named_item() argument 43 dom_object *intern = php_dom_obj_from_obj(zobj); in dom_html_collection_named_item() 82 …d dom_html_collection_named_item_into_zval(zval *return_value, zend_string *key, zend_object *zobj) in dom_html_collection_named_item_into_zval() argument 84 dom_named_item named_item = dom_html_collection_named_item(key, zobj); in dom_html_collection_named_item_into_zval()
|
/php-src/ext/standard/ |
H A D | var.c | 170 zend_object *zobj = Z_OBJ_P(struc); in php_var_dump() local 171 uint32_t *guard = zend_get_recursion_guard(zobj); in php_var_dump() 172 if (ZEND_GUARD_OR_GC_IS_RECURSIVE(guard, DEBUG, zobj)) { in php_var_dump() 176 ZEND_GUARD_OR_GC_PROTECT_RECURSION(guard, DEBUG, zobj); in php_var_dump() 369 zend_object *zobj = Z_OBJ_P(struc); in php_debug_zval_dump() local 370 uint32_t *guard = zend_get_recursion_guard(zobj); in php_debug_zval_dump() 371 if (ZEND_GUARD_OR_GC_IS_RECURSIVE(guard, DEBUG, zobj)) { in php_debug_zval_dump() 375 ZEND_GUARD_OR_GC_PROTECT_RECURSION(guard, DEBUG, zobj); in php_debug_zval_dump() 595 zend_object *zobj = Z_OBJ_P(struc); in php_var_export_ex() local 596 uint32_t *guard = zend_get_recursion_guard(zobj); in php_var_export_ex() [all …]
|
/php-src/ext/com_dotnet/ |
H A D | com_variant.c | 508 zval *zobj, *zvalue = NULL; in PHP_FUNCTION() local 516 obj = CDNO_FETCH(zobj); in PHP_FUNCTION() 1014 zval *zobj; in PHP_FUNCTION() local 1018 "O", &zobj, php_com_variant_class_entry)) { in PHP_FUNCTION() 1021 obj = CDNO_FETCH(zobj); in PHP_FUNCTION() 1030 zval *zobj; in PHP_FUNCTION() local 1037 "Ol", &zobj, php_com_variant_class_entry, &vt)) { in PHP_FUNCTION() 1040 obj = CDNO_FETCH(zobj); in PHP_FUNCTION() 1070 zval *zobj; in PHP_FUNCTION() local 1077 "Ol", &zobj, php_com_variant_class_entry, &vt)) { in PHP_FUNCTION() [all …]
|
H A D | com_persist.c | 626 zval *zobj = NULL; in CPH_METHOD() local 630 &zobj, php_com_variant_class_entry)) { in CPH_METHOD() 634 if (!zobj) { in CPH_METHOD() 638 obj = CDNO_FETCH(zobj); in CPH_METHOD()
|
/php-src/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-src/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-src/ |
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-src/ext/hash/ |
H A D | hash.c | 1367 zend_object *zobj = &objval->std; in php_hashcontext_create() local 1369 zend_object_std_init(zobj, ce); in php_hashcontext_create() 1370 object_properties_init(zobj, ce); in php_hashcontext_create() 1371 zobj->handlers = &php_hashcontext_handlers; in php_hashcontext_create() 1373 return zobj; in php_hashcontext_create() 1400 static zend_object *php_hashcontext_clone(zend_object *zobj) { in php_hashcontext_clone() argument 1401 php_hashcontext_object *oldobj = php_hashcontext_from_object(zobj); in php_hashcontext_clone() 1402 zend_object *znew = php_hashcontext_create(zobj->ce); in php_hashcontext_clone() 1410 zend_objects_clone_members(znew, zobj); in php_hashcontext_clone()
|
/php-src/ext/phar/ |
H A D | phar_object.c | 1125 zval *zobj = ZEND_THIS, arg1, arg2; in PHP_METHOD() local 1127 phar_obj = (phar_archive_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD() 1229 Z_OBJ_P(zobj), NULL, &arg1, &arg2); in PHP_METHOD() 1360 zval *zobj = ZEND_THIS; \ 1371 zval *zobj = ZEND_THIS; in PHP_METHOD() local 4468 zval *zobj = ZEND_THIS, arg1; in PHP_METHOD() local 4474 entry_obj = (phar_entry_object*)((char*)Z_OBJ_P(zobj) - Z_OBJ_P(zobj)->handlers->offset); in PHP_METHOD() 4517 Z_OBJ_P(zobj), NULL, &arg1); in PHP_METHOD() 4524 zval *zobj = ZEND_THIS; \ 4535 zval *zobj = ZEND_THIS; in PHP_METHOD() local [all …]
|
/php-src/ext/gd/ |
H A D | gd.c | 224 static php_gd_font_object *php_gd_font_object_from_zend_object(zend_object *zobj) in php_gd_font_object_from_zend_object() argument 226 return ((php_gd_font_object*)(zobj + 1)) - 1; in php_gd_font_object_from_zend_object() 237 zend_object *zobj = php_gd_font_object_to_zend_object(obj); in php_gd_font_object_create() local 240 zend_object_std_init(zobj, ce); in php_gd_font_object_create() 241 object_properties_init(zobj, ce); in php_gd_font_object_create() 242 zobj->handlers = &php_gd_font_object_handlers; in php_gd_font_object_create() 244 return zobj; in php_gd_font_object_create() 247 static void php_gd_font_object_free(zend_object *zobj) in php_gd_font_object_free() argument 249 php_gd_font_object *obj = php_gd_font_object_from_zend_object(zobj); in php_gd_font_object_free() 259 zend_object_std_dtor(zobj); in php_gd_font_object_free()
|