@@ -2035,7 +2035,7 @@ static inline zend_object_value date_object_new_date_ex(zend_class_entry *class_
20352035 }
20362036
20372037 zend_object_std_init (& intern -> std , class_type TSRMLS_CC );
2038- zend_hash_copy (intern -> std .properties , & class_type -> default_properties , (copy_ctor_func_t ) zval_add_ref , (void * ) & tmp , sizeof (zval * ));
2038+ zend_hash_copy (intern -> std .properties , & class_type -> default_properties , (copy_ctor_func_t ) zval_property_ctor , (void * ) & tmp , sizeof (zval * ));
20392039
20402040 retval .handle = zend_objects_store_put (intern , (zend_objects_store_dtor_t )zend_objects_destroy_object , (zend_objects_free_object_storage_t ) date_object_free_storage_date , NULL TSRMLS_CC );
20412041 retval .handlers = & date_object_handlers_date ;
@@ -2159,7 +2159,7 @@ static inline zend_object_value date_object_new_timezone_ex(zend_class_entry *cl
21592159 }
21602160
21612161 zend_object_std_init (& intern -> std , class_type TSRMLS_CC );
2162- zend_hash_copy (intern -> std .properties , & class_type -> default_properties , (copy_ctor_func_t ) zval_add_ref , (void * ) & tmp , sizeof (zval * ));
2162+ zend_hash_copy (intern -> std .properties , & class_type -> default_properties , (copy_ctor_func_t ) zval_property_ctor , (void * ) & tmp , sizeof (zval * ));
21632163
21642164 retval .handle = zend_objects_store_put (intern , (zend_objects_store_dtor_t )zend_objects_destroy_object , (zend_objects_free_object_storage_t ) date_object_free_storage_timezone , NULL TSRMLS_CC );
21652165 retval .handlers = & date_object_handlers_timezone ;
@@ -2215,7 +2215,7 @@ static inline zend_object_value date_object_new_interval_ex(zend_class_entry *cl
22152215 }
22162216
22172217 zend_object_std_init (& intern -> std , class_type TSRMLS_CC );
2218- zend_hash_copy (intern -> std .properties , & class_type -> default_properties , (copy_ctor_func_t ) zval_add_ref , (void * ) & tmp , sizeof (zval * ));
2218+ zend_hash_copy (intern -> std .properties , & class_type -> default_properties , (copy_ctor_func_t ) zval_property_ctor , (void * ) & tmp , sizeof (zval * ));
22192219
22202220 retval .handle = zend_objects_store_put (intern , (zend_objects_store_dtor_t )zend_objects_destroy_object , (zend_objects_free_object_storage_t ) date_object_free_storage_interval , NULL TSRMLS_CC );
22212221 retval .handlers = & date_object_handlers_interval ;
@@ -2291,7 +2291,7 @@ static inline zend_object_value date_object_new_period_ex(zend_class_entry *clas
22912291 }
22922292
22932293 zend_object_std_init (& intern -> std , class_type TSRMLS_CC );
2294- zend_hash_copy (intern -> std .properties , & class_type -> default_properties , (copy_ctor_func_t ) zval_add_ref , (void * ) & tmp , sizeof (zval * ));
2294+ zend_hash_copy (intern -> std .properties , & class_type -> default_properties , (copy_ctor_func_t ) zval_property_ctor , (void * ) & tmp , sizeof (zval * ));
22952295
22962296 retval .handle = zend_objects_store_put (intern , (zend_objects_store_dtor_t )zend_objects_destroy_object , (zend_objects_free_object_storage_t ) date_object_free_storage_period , NULL TSRMLS_CC );
22972297 retval .handlers = & date_object_handlers_period ;
0 commit comments