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

index 4ca93dc6bc1c531a5d8e1e8f1cd449c2184f67a7..c1beb5867c309499d5e1fc1ef194897ee9e75ca4 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);
 }
 /* }}} */