summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-06-04 10:34:22 +0000
committerMarcus Boerger <helly@php.net>2006-06-04 10:34:22 +0000
commit37f5474ce9a3898d2c0882178d68a100e277dfbb (patch)
tree9ae961cb560171e8f71729d7e8c0ec288399436b
parent6c0f1667946f1e722d8f2f6b838f197b7b9a8cfc (diff)
downloadphp-git-37f5474ce9a3898d2c0882178d68a100e277dfbb.tar.gz
- MFH Use engine call to register interfaces (steph)
-rwxr-xr-xext/spl/spl_functions.c5
1 files changed, 1 insertions, 4 deletions
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);
}
/* }}} */