summaryrefslogtreecommitdiff
path: root/ext/spl/spl_functions.h
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-12-08 08:39:18 +0000
committerMarcus Boerger <helly@php.net>2003-12-08 08:39:18 +0000
commitf3a3990ca82d57ab0233a10b682d80de1d17083c (patch)
treebb48756974ef029a227a70dc40d63db4e04069c0 /ext/spl/spl_functions.h
parent1c1301870286f97e5c7a8b8990d0980521bfa6b2 (diff)
downloadphp-git-f3a3990ca82d57ab0233a10b682d80de1d17083c.tar.gz
Implement CahingIterator and CachingRecursiveIterator as C-code.
#Script examples/directorytree.php has a few memleaks though but besides #that all works fine.
Diffstat (limited to 'ext/spl/spl_functions.h')
-rwxr-xr-xext/spl/spl_functions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/spl/spl_functions.h b/ext/spl/spl_functions.h
index 209e146177..d94c2eb796 100755
--- a/ext/spl/spl_functions.h
+++ b/ext/spl/spl_functions.h
@@ -41,6 +41,9 @@ typedef zend_object_value (*create_object_func_t)(zend_class_entry *class_type T
#define REGISTER_SPL_IMPLEMENTS(class_name, interface_name) \
zend_class_implements(spl_ce_ ## class_name TSRMLS_CC, 1, spl_ce_ ## interface_name);
+#define REGISTER_SPL_ITERATOR(class_name) \
+ zend_class_implements(spl_ce_ ## class_name TSRMLS_CC, 1, zend_ce_iterator);
+
#define REGISTER_SPL_FUNCTIONS(class_name, function_list) \
spl_register_functions(spl_ce_ ## class_name, function_list TSRMLS_CC);