@@ -2148,8 +2148,6 @@ static void date_register_classes(void) /* {{{ */
2148
2148
date_object_handlers_period .get_properties = date_object_get_properties_period ;
2149
2149
date_object_handlers_period .get_property_ptr_ptr = NULL ;
2150
2150
date_object_handlers_period .get_gc = date_object_get_gc_period ;
2151
- date_object_handlers_period .read_property = date_period_read_property ;
2152
- date_object_handlers_period .write_property = date_period_write_property ;
2153
2151
2154
2152
#define REGISTER_PERIOD_CLASS_CONST_STRING (const_name , value ) \
2155
2153
zend_declare_class_constant_long(date_ce_period, const_name, sizeof(const_name)-1, value);
@@ -5255,34 +5253,6 @@ PHP_METHOD(DatePeriod, __wakeup)
5255
5253
}
5256
5254
/* }}} */
5257
5255
5258
- /* {{{ date_period_read_property */
5259
- static zval * date_period_read_property (zval * object , zval * member , int type , void * * cache_slot , zval * rv )
5260
- {
5261
- zval * zv ;
5262
- if (type != BP_VAR_IS && type != BP_VAR_R ) {
5263
- zend_throw_error (NULL , "Retrieval of DatePeriod properties for modification is unsupported" );
5264
- return & EG (uninitialized_zval );
5265
- }
5266
-
5267
- Z_OBJPROP_P (object ); /* build properties hash table */
5268
-
5269
- zv = std_object_handlers .read_property (object , member , type , cache_slot , rv );
5270
- if (Z_TYPE_P (zv ) == IS_OBJECT && Z_OBJ_HANDLER_P (zv , clone_obj )) {
5271
- /* defensive copy */
5272
- ZVAL_OBJ (zv , Z_OBJ_HANDLER_P (zv , clone_obj )(zv ));
5273
- }
5274
-
5275
- return zv ;
5276
- }
5277
- /* }}} */
5278
-
5279
- /* {{{ date_period_write_property */
5280
- static void date_period_write_property (zval * object , zval * member , zval * value , void * * cache_slot )
5281
- {
5282
- zend_throw_error (NULL , "Writing to DatePeriod properties is unsupported" );
5283
- }
5284
- /* }}} */
5285
-
5286
5256
/*
5287
5257
* Local variables:
5288
5258
* tab-width: 4
0 commit comments