Lines Matching refs:zobj

39 static uint32_t zho_num_backed_props(zend_object *zobj)  in zho_num_backed_props()  argument
41 return zobj->ce->default_properties_count; in zho_num_backed_props()
44 static zend_array *zho_build_properties_ex(zend_object *zobj, bool check_access, bool force_ptr, bo… in zho_build_properties_ex() argument
46 zend_class_entry *ce = zobj->ce; in zho_build_properties_ex()
83 if (check_access && zend_check_property_access(zobj, property_name, false) == FAILURE) { in zho_build_properties_ex()
89 if (UNEXPECTED(Z_TYPE_P(OBJ_PROP(zobj, prop_info->offset)) == IS_UNDEF)) { in zho_build_properties_ex()
93 ZVAL_INDIRECT(tmp, OBJ_PROP(zobj, prop_info->offset)); in zho_build_properties_ex()
104 if (include_dynamic_props && zobj->properties) { in zho_build_properties_ex()
107 …ZEND_HASH_FOREACH_STR_KEY_VAL_FROM(zobj->properties, prop_name, prop_value, zho_num_backed_props(z… in zho_build_properties_ex()
115 ZEND_API zend_array *zend_hooked_object_build_properties(zend_object *zobj) in zend_hooked_object_build_properties() argument
117 if (UNEXPECTED(zend_lazy_object_must_init(zobj))) { in zend_hooked_object_build_properties()
118 zobj = zend_lazy_object_init(zobj); in zend_hooked_object_build_properties()
119 if (UNEXPECTED(!zobj)) { in zend_hooked_object_build_properties()
124 return zho_build_properties_ex(zobj, false, false, true); in zend_hooked_object_build_properties()
129 zend_object *zobj = Z_OBJ_P(&hooked_iter->it.data); in zho_dynamic_it_init() local
130 zend_array *properties = zobj->handlers->get_properties(zobj); in zho_dynamic_it_init()
132 hooked_iter->dynamic_prop_it = zend_hash_iterator_add(properties, zho_num_backed_props(zobj)); in zho_dynamic_it_init()
140 zend_object *zobj = Z_OBJ_P(&iter->data); in zho_declared_it_fetch_current() local
153 ZSTR_VAL(zobj->ce->name), zend_get_unmangled_property_name(prop_info->name)); in zho_declared_it_fetch_current()
161 …zval *value = zend_read_property_ex(prop_info->ce, zobj, unmangled_name, /* silent */ true, &hooke… in zho_declared_it_fetch_current()
171 zval *property = OBJ_PROP(zobj, prop_info->offset); in zho_declared_it_fetch_current()
218 zend_object *zobj = Z_OBJ_P(&hooked_iter->it.data); in zho_dynamic_it_fetch_current() local
219 if (bucket->key && zend_check_property_access(zobj, bucket->key, true) != SUCCESS) { in zho_dynamic_it_fetch_current()
351 zend_object *zobj = Z_OBJ_P(object); in zend_hooked_object_get_iterator() local
352 if (UNEXPECTED(zend_lazy_object_must_init(zobj))) { in zend_hooked_object_get_iterator()
353 zobj = zend_lazy_object_init(zobj); in zend_hooked_object_get_iterator()
354 if (UNEXPECTED(!zobj)) { in zend_hooked_object_get_iterator()
362 ZVAL_OBJ_COPY(&iterator->it.data, zobj); in zend_hooked_object_get_iterator()
365 zend_array *properties = zho_build_properties_ex(zobj, true, true, false); in zend_hooked_object_get_iterator()