Home
last modified time | relevance | path

Searched refs:zobj (Results 1 – 25 of 34) sorted by path

12

/php-src/
H A D.gdbinit210 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/Zend/
H A Dzend.c553 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 Dzend_API.c728 zend_object *zobj = Z_OBJ_P(arg); in zend_parse_arg_number_or_str_slow() local
730 if (zobj->handlers->cast_object(zobj, &obj, IS_STRING) == SUCCESS) { in zend_parse_arg_number_or_str_slow()
731 OBJ_RELEASE(zobj); in zend_parse_arg_number_or_str_slow()
753 zend_object *zobj = Z_OBJ_P(arg); in zend_parse_arg_str_weak() local
755 if (zobj->handlers->cast_object(zobj, &obj, IS_STRING) == SUCCESS) { in zend_parse_arg_str_weak()
756 OBJ_RELEASE(zobj); in zend_parse_arg_str_weak()
1387 zend_object *zobj = Z_OBJ_P(obj); in zend_merge_properties() local
1388 zend_object_write_property_t write_property = zobj->handlers->write_property; in zend_merge_properties()
1399 write_property(zobj, key, value, NULL); in zend_merge_properties()
H A Dzend_API.h2375 zend_object *zobj = Z_OBJ_P(arg); in zend_parse_arg_array_ht() local
2377 && zobj->properties in zend_parse_arg_array_ht()
2378 && UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_parse_arg_array_ht()
2379 if (EXPECTED(!(GC_FLAGS(zobj->properties) & IS_ARRAY_IMMUTABLE))) { in zend_parse_arg_array_ht()
2380 GC_DELREF(zobj->properties); in zend_parse_arg_array_ht()
2382 zobj->properties = zend_array_dup(zobj->properties); in zend_parse_arg_array_ht()
2384 *dest = zobj->handlers->get_properties(zobj); in zend_parse_arg_array_ht()
H A Dzend_ast.c993 zend_object *zobj = Z_OBJ(op1); in zend_ast_evaluate_inner() local
994 if (!(zobj->ce->ce_flags & ZEND_ACC_ENUM)) { in zend_ast_evaluate_inner()
1002 zval *property_result = zend_read_property_ex(scope, zobj, name, 0, result); in zend_ast_evaluate_inner()
H A Dzend_attributes.c135 static HashTable *attributes_sensitive_parameter_value_get_properties_for(zend_object *zobj, zend_p… in attributes_sensitive_parameter_value_get_properties_for() argument
H A Dzend_builtin_functions.c764 zend_object *zobj; in ZEND_FUNCTION() local
768 Z_PARAM_OBJ(zobj) in ZEND_FUNCTION()
771 properties = zobj->handlers->get_properties(zobj); in ZEND_FUNCTION()
776 …if (!zobj->ce->default_properties_count && properties == zobj->properties && !GC_IS_RECURSIVE(prop… in ZEND_FUNCTION()
778 if (EXPECTED(zobj->handlers == &std_object_handlers)) { in ZEND_FUNCTION()
796 if (key && zend_check_property_access(zobj, key, is_dynamic) == FAILURE) { in ZEND_FUNCTION()
H A Dzend_enum.c41 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 Dzend_enum.h49 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 Dzend_execute.c3163 zend_object *zobj; in zend_fetch_property_address() local
3191 zobj = Z_OBJ_P(container); in zend_fetch_property_address()
3193 EXPECTED(zobj->ce == CACHED_PTR_EX(cache_slot))) { in zend_fetch_property_address()
3197 ptr = OBJ_PROP(zobj, prop_offset); in zend_fetch_property_address()
3224 } else if (EXPECTED(zobj->properties != NULL)) { in zend_fetch_property_address()
3225 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_fetch_property_address()
3226 if (EXPECTED(!(GC_FLAGS(zobj->properties) & IS_ARRAY_IMMUTABLE))) { in zend_fetch_property_address()
3227 GC_DELREF(zobj->properties); in zend_fetch_property_address()
3229 zobj->properties = zend_array_dup(zobj->properties); in zend_fetch_property_address()
3244 ptr = zobj->handlers->get_property_ptr_ptr(zobj, name, type, cache_slot); in zend_fetch_property_address()
[all …]
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()
547 return zobj->properties_table + zobj->ce->default_properties_count; in zend_get_guard_value()
694 GC_ADDREF(zobj); in zend_std_read_property()
722 GC_ADDREF(zobj); in zend_std_read_property()
887 zobj->properties = zend_array_dup(zobj->properties); in zend_std_write_property()
904 GC_ADDREF(zobj); in zend_std_write_property()
1140 zobj->properties = zend_array_dup(zobj->properties); in zend_std_get_property_ptr_ptr()
1223 zobj->properties = zend_array_dup(zobj->properties); in zend_std_unset_property()
1883 GC_ADDREF(zobj); in zend_std_has_property()
[all …]
H A Dzend_object_handlers.h225 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 Dzend_operators.c2815 zend_object *zobj = Z_OBJ_P(op); in zend_object_is_true() local
2817 if (zobj->handlers->cast_object(zobj, &tmp, _IS_BOOL) == SUCCESS) { in zend_object_is_true()
2820 …zend_error(E_RECOVERABLE_ERROR, "Object of class %s could not be converted to bool", ZSTR_VAL(zobj in zend_object_is_true()
H A Dzend_types.h887 #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 Dzend_vm_def.h1017 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);
5854 zend_object *zobj; variable
5884 zobj = Z_OBJ_P(obj);
5885 ce = zobj->ce;
6760 properties = zobj->handlers->get_properties(zobj);
[all …]
H A Dzend_vm_execute.h4954 ce = zobj->ce; in ZEND_CLONE_SPEC_CONST_HANDLER()
5270 properties = zobj->handlers->get_properties(zobj); in ZEND_FE_RESET_R_SPEC_CONST_HANDLER()
19660 properties = zobj->handlers->get_properties(zobj); in ZEND_FE_RESET_R_SPEC_TMP_HANDLER()
22330 properties = zobj->handlers->get_properties(zobj); in ZEND_FE_RESET_R_SPEC_VAR_HANDLER()
23544 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CONST_HANDLER()
23678 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_TMP_HANDLER()
23812 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_VAR_HANDLER()
23946 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CV_HANDLER()
26470 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_TMPVAR_OP_DATA_CONST_HANDLER()
26604 zobj->properties = zend_array_dup(zobj->properties); in ZEND_ASSIGN_OBJ_SPEC_VAR_TMPVAR_OP_DATA_TMP_HANDLER()
[all …]
/php-src/ext/com_dotnet/
H A Dcom_persist.c633 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()
H A Dcom_variant.c507 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 …]
/php-src/ext/date/
H A Dphp_date.c2336 static void add_common_properties(HashTable *myht, zend_object *zobj) in add_common_properties() argument
2342 common = zend_std_get_properties(zobj); in add_common_properties()
/php-src/ext/dom/
H A Dhtml_collection.c34 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/ffi/
H A Dffi.c1745 static zend_string *zend_ffi_cdata_get_class_name(const zend_object *zobj) /* {{{ */ in zend_ffi_cdata_get_class_name() argument
1747 zend_ffi_cdata *cdata = (zend_ffi_cdata*)zobj; in zend_ffi_cdata_get_class_name()
1749 return zend_ffi_get_class_name(zobj->ce->name, ZEND_FFI_TYPE(cdata->type)); in zend_ffi_cdata_get_class_name()
2247 static zend_string *zend_ffi_ctype_get_class_name(const zend_object *zobj) /* {{{ */ in zend_ffi_ctype_get_class_name() argument
2249 zend_ffi_ctype *ctype = (zend_ffi_ctype*)zobj; in zend_ffi_ctype_get_class_name()
2251 return zend_ffi_get_class_name(zobj->ce->name, ZEND_FFI_TYPE(ctype->type)); in zend_ffi_ctype_get_class_name()
/php-src/ext/fileinfo/
H A Dfileinfo.c246 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/ext/ftp/
H A Dphp_ftp.c70 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/gd/
H A Dgd.c228 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()
/php-src/ext/gmp/
H A Dgmp.c480 zend_object *zobj; in gmp_unserialize() local
485 zobj = Z_OBJ_P(object); in gmp_unserialize()
509 zend_std_get_properties(zobj), Z_ARRVAL_P(zv), in gmp_unserialize()

Completed in 367 milliseconds

12