Lines Matching refs:old_object

216 …API void ZEND_FASTCALL zend_objects_clone_members(zend_object *new_object, zend_object *old_object)  in zend_objects_clone_members()  argument
218 bool has_clone_method = old_object->ce->clone != NULL; in zend_objects_clone_members()
220 if (old_object->ce->default_properties_count) { in zend_objects_clone_members()
221 zval *src = old_object->properties_table; in zend_objects_clone_members()
223 zval *end = src + old_object->ce->default_properties_count; in zend_objects_clone_members()
244 } else if (old_object->properties && !has_clone_method) { in zend_objects_clone_members()
246 if (EXPECTED(old_object->handlers == &std_object_handlers)) { in zend_objects_clone_members()
247 if (EXPECTED(!(GC_FLAGS(old_object->properties) & IS_ARRAY_IMMUTABLE))) { in zend_objects_clone_members()
248 GC_ADDREF(old_object->properties); in zend_objects_clone_members()
250 new_object->properties = old_object->properties; in zend_objects_clone_members()
255 if (old_object->properties && in zend_objects_clone_members()
256 EXPECTED(zend_hash_num_elements(old_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()
265 …>properties, new_object->properties->nNumUsed + zend_hash_num_elements(old_object->properties), 0); in zend_objects_clone_members()
269 HT_FLAGS(old_object->properties) & HASH_FLAG_HAS_EMPTY_IND; in zend_objects_clone_members()
271 ZEND_HASH_MAP_FOREACH_KEY_VAL(old_object->properties, num_key, key, prop) { 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()
306 ZEND_API zend_object *zend_objects_clone_obj(zend_object *old_object) in zend_objects_clone_obj() argument
310 if (UNEXPECTED(zend_object_is_lazy(old_object))) { in zend_objects_clone_obj()
311 return zend_lazy_object_clone(old_object); in zend_objects_clone_obj()
316 new_object = zend_objects_new(old_object->ce); in zend_objects_clone_obj()
328 zend_objects_clone_members(new_object, old_object); in zend_objects_clone_obj()