Lines Matching refs:new_object

160 ZEND_API void zend_objects_clone_members(zend_object *new_object, zend_object_value new_obj_val, ze…  in zend_objects_clone_members()  argument
165 if (!new_object->properties_table) { in zend_objects_clone_members()
166 new_object->properties_table = emalloc(sizeof(zval*) * old_object->ce->default_properties_count); in zend_objects_clone_members()
167 … memset(new_object->properties_table, 0, sizeof(zval*) * old_object->ce->default_properties_count); in zend_objects_clone_members()
170 if (!new_object->properties) { in zend_objects_clone_members()
171 if (new_object->properties_table[i]) { in zend_objects_clone_members()
172 zval_ptr_dtor(&new_object->properties_table[i]); in zend_objects_clone_members()
176 new_object->properties_table[i] = old_object->properties_table[i]; in zend_objects_clone_members()
177 if (new_object->properties_table[i]) { in zend_objects_clone_members()
178 Z_ADDREF_P(new_object->properties_table[i]); in zend_objects_clone_members()
184 if (!new_object->properties) { in zend_objects_clone_members()
185 ALLOC_HASHTABLE(new_object->properties); in zend_objects_clone_members()
186 zend_hash_init(new_object->properties, 0, NULL, ZVAL_PTR_DTOR, 0); in zend_objects_clone_members()
188 …zend_hash_copy(new_object->properties, old_object->properties, (copy_ctor_func_t) zval_add_ref, (v… in zend_objects_clone_members()
196 …if (zend_hash_quick_find(new_object->properties, prop_info->name, prop_info->name_length+1, prop_i… in zend_objects_clone_members()
197 new_object->properties_table[prop_info->offset] = NULL; in zend_objects_clone_members()
222 zend_object *new_object; in zend_objects_clone_obj() local
228 new_obj_val = zend_objects_new(&new_object, old_object->ce TSRMLS_CC); in zend_objects_clone_obj()
230 zend_objects_clone_members(new_object, new_obj_val, old_object, handle TSRMLS_CC); in zend_objects_clone_obj()