]> granicus.if.org Git - php/commitdiff
- MFH Use engine call to register interfaces (steph)
authorMarcus Boerger <helly@php.net>
Sun, 4 Jun 2006 10:34:22 +0000 (10:34 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 4 Jun 2006 10:34:22 +0000 (10:34 +0000)
ext/spl/spl_functions.c

index 442860fc9a2a99d84a659ebc6ad4590e54d8e8cf..517f9f3e745b241907403cd7f5bc5939ca81b853 100755 (executable)
@@ -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);
 }
 /* }}} */