@@ -426,13 +426,6 @@ static int zend_implement_iterator(zend_class_entry *interface, zend_class_entry
426
426
}
427
427
/* }}} */
428
428
429
- /* {{{ zend_implement_arrayaccess */
430
- static int zend_implement_arrayaccess (zend_class_entry * interface , zend_class_entry * class_type )
431
- {
432
- return SUCCESS ;
433
- }
434
- /* }}}*/
435
-
436
429
/* {{{ zend_user_serialize */
437
430
ZEND_API int zend_user_serialize (zval * object , unsigned char * * buffer , size_t * buf_len , zend_serialize_data * data )
438
431
{
@@ -526,13 +519,6 @@ static int zend_implement_serializable(zend_class_entry *interface, zend_class_e
526
519
}
527
520
/* }}}*/
528
521
529
- /* {{{ zend_implement_countable */
530
- static int zend_implement_countable (zend_class_entry * interface , zend_class_entry * class_type )
531
- {
532
- return SUCCESS ;
533
- }
534
- /* }}}*/
535
-
536
522
/* {{{ function tables */
537
523
static const zend_function_entry zend_funcs_aggregate [] = {
538
524
ZEND_ABSTRACT_ME (iterator , getIterator , arginfo_class_IteratorAggregate_getIterator )
@@ -586,13 +572,15 @@ ZEND_API void zend_register_interfaces(void)
586
572
REGISTER_MAGIC_INTERFACE (iterator , Iterator );
587
573
REGISTER_MAGIC_IMPLEMENT (iterator , traversable );
588
574
589
- REGISTER_MAGIC_INTERFACE (arrayaccess , ArrayAccess );
590
-
591
575
REGISTER_MAGIC_INTERFACE (serializable , Serializable );
592
576
593
- REGISTER_MAGIC_INTERFACE (countable , Countable );
594
-
595
577
zend_class_entry ce ;
578
+ INIT_CLASS_ENTRY (ce , "ArrayAccess" , zend_funcs_arrayaccess );
579
+ zend_ce_arrayaccess = zend_register_internal_interface (& ce );
580
+
581
+ INIT_CLASS_ENTRY (ce , "Countable" , zend_funcs_countable );
582
+ zend_ce_countable = zend_register_internal_interface (& ce );
583
+
596
584
INIT_CLASS_ENTRY (ce , "Stringable" , zend_funcs_stringable );
597
585
zend_ce_stringable = zend_register_internal_interface (& ce );
598
586
}
0 commit comments