From: Marcus Boerger Date: Sun, 4 Jun 2006 10:34:22 +0000 (+0000) Subject: - MFH Use engine call to register interfaces (steph) X-Git-Tag: php-5.2.0RC1~378 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37f5474ce9a3898d2c0882178d68a100e277dfbb;p=php - MFH Use engine call to register interfaces (steph) --- diff --git a/ext/spl/spl_functions.c b/ext/spl/spl_functions.c index 442860fc9a..517f9f3e74 100755 --- a/ext/spl/spl_functions.c +++ b/ext/spl/spl_functions.c @@ -42,10 +42,7 @@ void spl_register_interface(zend_class_entry ** ppce, char * class_name, zend_fu INIT_CLASS_ENTRY(ce, class_name, functions); ce.name_length = strlen(class_name); - *ppce = zend_register_internal_class(&ce TSRMLS_CC); - - /* entries changed by initialize */ - (*ppce)->ce_flags = ZEND_ACC_INTERFACE; + *ppce = zend_register_internal_interface(&ce TSRMLS_CC); } /* }}} */