@@ -152,9 +152,7 @@ static zend_object *Transliterator_clone_obj( zend_object *object )
152
152
if ( U_FAILURE ( TRANSLITERATOR_ERROR_CODE ( to_orig ) ) )
153
153
goto err ;
154
154
155
- ZVAL_OBJ (& tempz , ret_val );
156
- transliterator_object_construct ( & tempz , utrans ,
157
- TRANSLITERATOR_ERROR_CODE_P ( to_orig ) );
155
+ to_new -> utrans = utrans ;
158
156
159
157
if ( U_FAILURE ( TRANSLITERATOR_ERROR_CODE ( to_orig ) ) )
160
158
{
@@ -186,54 +184,6 @@ static zend_object *Transliterator_clone_obj( zend_object *object )
186
184
}
187
185
/* }}} */
188
186
189
- /* {{{ get_property_ptr_ptr handler */
190
- static zval * Transliterator_get_property_ptr_ptr ( zend_object * object , zend_string * name , int type , void * * cache_slot )
191
- {
192
- if (zend_string_equals_literal (name , "id" )) {
193
- return NULL ; /* fallback to read_property */
194
- }
195
- return zend_std_get_property_ptr_ptr ( object , name , type , cache_slot );
196
- }
197
- /* }}} */
198
-
199
- /* {{{ read_property handler */
200
- static zval * Transliterator_read_property ( zend_object * object , zend_string * name , int type , void * * cache_slot , zval * rv )
201
- {
202
- zval * retval ;
203
-
204
- if ((type != BP_VAR_R && type != BP_VAR_IS ) && zend_string_equals_literal (name , "id" )) {
205
- zend_throw_error (NULL , "Transliterator::$id is read-only" );
206
- retval = & EG ( uninitialized_zval );
207
- } else {
208
- retval = zend_std_read_property ( object , name , type , cache_slot , rv );
209
- }
210
-
211
- return retval ;
212
- }
213
-
214
- /* }}} */
215
-
216
- /* {{{ write_property handler */
217
- static zval * Transliterator_write_property ( zend_object * object , zend_string * name , zval * value ,
218
- void * * cache_slot )
219
- {
220
- zend_class_entry * scope ;
221
-
222
- if (EG (fake_scope )) {
223
- scope = EG (fake_scope );
224
- } else {
225
- scope = zend_get_executed_scope ();
226
- }
227
- if ((scope != Transliterator_ce_ptr ) && zend_string_equals_literal (name , "id" )) {
228
- zend_throw_error (NULL , "Transliterator::$id is read-only" );
229
- } else {
230
- value = zend_std_write_property ( object , name , value , cache_slot );
231
- }
232
-
233
- return value ;
234
- }
235
- /* }}} */
236
-
237
187
/* {{{ transliterator_register_Transliterator_class
238
188
* Initialize 'Transliterator' class
239
189
*/
@@ -246,9 +196,6 @@ void transliterator_register_Transliterator_class( void )
246
196
Transliterator_handlers .offset = XtOffsetOf (Transliterator_object , zo );
247
197
Transliterator_handlers .free_obj = Transliterator_objects_free ;
248
198
Transliterator_handlers .clone_obj = Transliterator_clone_obj ;
249
- Transliterator_handlers .get_property_ptr_ptr = Transliterator_get_property_ptr_ptr ;
250
- Transliterator_handlers .read_property = Transliterator_read_property ;
251
- Transliterator_handlers .write_property = Transliterator_write_property ;
252
199
253
200
/* constants are declared in transliterator_register_constants, called from MINIT */
254
201
0 commit comments