Searched refs:old_object (Results 1 – 10 of 10) sorted by relevance
/php-src/Zend/ |
H A D | zend_objects.c | 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() 244 } else if (old_object->properties && !has_clone_method) { 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() 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() [all …]
|
H A D | zend_objects.h | 28 …PI void ZEND_FASTCALL zend_objects_clone_members(zend_object *new_object, zend_object *old_object);
|
H A D | zend_weakrefs.c | 598 static zend_object *zend_weakmap_clone_obj(zend_object *old_object) in zend_weakmap_clone_obj() argument 601 zend_weakmap *old_wm = zend_weakmap_from(old_object); in zend_weakmap_clone_obj()
|
/php-src/ext/spl/ |
H A D | spl_fixedarray.c | 318 static zend_object *spl_fixedarray_object_clone(zend_object *old_object) in spl_fixedarray_object_clone() argument 320 zend_object *new_object = spl_fixedarray_object_new_ex(old_object->ce, old_object, 1); in spl_fixedarray_object_clone() 322 zend_objects_clone_members(new_object, old_object); in spl_fixedarray_object_clone()
|
H A D | spl_heap.c | 487 static zend_object *spl_heap_object_clone(zend_object *old_object) /* {{{ */ in spl_heap_object_clone() argument 489 zend_object *new_object = spl_heap_object_new_ex(old_object->ce, old_object, 1); in spl_heap_object_clone() 491 zend_objects_clone_members(new_object, old_object); in spl_heap_object_clone()
|
H A D | spl_dllist.c | 396 static zend_object *spl_dllist_object_clone(zend_object *old_object) /* {{{ */ in spl_dllist_object_clone() argument 398 zend_object *new_object = spl_dllist_object_new_ex(old_object->ce, old_object, 1); in spl_dllist_object_clone() 400 zend_objects_clone_members(new_object, old_object); in spl_dllist_object_clone()
|
H A D | spl_observer.c | 310 static zend_object *spl_object_storage_clone(zend_object *old_object) in spl_object_storage_clone() argument 314 new_object = spl_object_storage_new_ex(old_object->ce, old_object); in spl_object_storage_clone() 316 zend_objects_clone_members(new_object, old_object); in spl_object_storage_clone()
|
H A D | spl_array.c | 233 static zend_object *spl_array_object_clone(zend_object *old_object) in spl_array_object_clone() argument 237 new_object = spl_array_object_new_ex(old_object->ce, old_object, 1); in spl_array_object_clone() 239 zend_objects_clone_members(new_object, old_object); in spl_array_object_clone()
|
H A D | spl_directory.c | 392 static zend_object *spl_filesystem_object_clone(zend_object *old_object) in spl_filesystem_object_clone() argument 398 source = spl_filesystem_from_obj(old_object); in spl_filesystem_object_clone() 399 new_object = spl_filesystem_object_new(old_object->ce); in spl_filesystem_object_clone() 435 zend_objects_clone_members(new_object, old_object); in spl_filesystem_object_clone()
|
/php-src/ext/gmp/ |
H A D | gmp.c | 288 gmp_object *old_object = GET_GMP_OBJECT_FROM_OBJ(obj); in gmp_clone_obj() local 291 zend_objects_clone_members( &new_object->std, &old_object->std); in gmp_clone_obj() 293 mpz_set(new_object->num, old_object->num); in gmp_clone_obj()
|
Completed in 66 milliseconds