Lines Matching refs:new_object
216 ZEND_API void ZEND_FASTCALL zend_objects_clone_members(zend_object *new_object, zend_object *old_ob… in zend_objects_clone_members() argument
222 zval *dst = new_object->properties_table; in zend_objects_clone_members()
236 zend_property_info *prop_info = zend_get_property_info_for_slot_self(new_object, dst); in zend_objects_clone_members()
250 new_object->properties = old_object->properties; in zend_objects_clone_members()
261 if (!new_object->properties) { in zend_objects_clone_members()
262 new_object->properties = zend_new_array(zend_hash_num_elements(old_object->properties)); in zend_objects_clone_members()
263 zend_hash_real_init_mixed(new_object->properties); in zend_objects_clone_members()
265 …zend_hash_extend(new_object->properties, new_object->properties->nNumUsed + zend_hash_num_elements… in zend_objects_clone_members()
268 HT_FLAGS(new_object->properties) |= in zend_objects_clone_members()
273 …ZVAL_INDIRECT(&new_prop, new_object->properties_table + (Z_INDIRECT_P(prop) - old_object->properti… in zend_objects_clone_members()
283 _zend_hash_append(new_object->properties, key, &new_prop); in zend_objects_clone_members()
285 zend_hash_index_add_new(new_object->properties, num_key, &new_prop); in zend_objects_clone_members()
291 GC_ADDREF(new_object); in zend_objects_clone_members()
292 zend_call_known_instance_method_with_0_params(new_object->ce->clone, new_object, NULL); in zend_objects_clone_members()
294 if (ZEND_CLASS_HAS_READONLY_PROPS(new_object->ce)) { in zend_objects_clone_members()
295 for (uint32_t i = 0; i < new_object->ce->default_properties_count; i++) { in zend_objects_clone_members()
296 zval* prop = OBJ_PROP_NUM(new_object, i); in zend_objects_clone_members()
302 OBJ_RELEASE(new_object); in zend_objects_clone_members()
308 zend_object *new_object; in zend_objects_clone_obj() local
316 new_object = zend_objects_new(old_object->ce); in zend_objects_clone_obj()
319 if (new_object->ce->default_properties_count) { in zend_objects_clone_obj()
320 zval *p = new_object->properties_table; in zend_objects_clone_obj()
321 zval *end = p + new_object->ce->default_properties_count; in zend_objects_clone_obj()
328 zend_objects_clone_members(new_object, old_object); in zend_objects_clone_obj()
330 return new_object; in zend_objects_clone_obj()