summaryrefslogtreecommitdiff
path: root/ext/spl/php_spl.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-05-26 00:37:33 +0000
committerMarcus Boerger <helly@php.net>2006-05-26 00:37:33 +0000
commitf0e9f6e4f97fa48f910f52048814bb961d4fb2ea (patch)
treea63d1e8cf2077bb133656d3c2fca39b18c3a913f /ext/spl/php_spl.c
parentcc56405cb939d0766a197146bdd2b982b0996855 (diff)
downloadphp-git-f0e9f6e4f97fa48f910f52048814bb961d4fb2ea.tar.gz
- Add function iterator_apply()
Diffstat (limited to 'ext/spl/php_spl.c')
-rwxr-xr-xext/spl/php_spl.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c
index 98521f5376..3a046c1a00 100755
--- a/ext/spl/php_spl.c
+++ b/ext/spl/php_spl.c
@@ -621,7 +621,14 @@ PHP_MINFO_FUNCTION(spl)
static
ZEND_BEGIN_ARG_INFO(arginfo_iterator, 0)
- ZEND_ARG_INFO(0, iterator)
+ ZEND_ARG_OBJ_INFO(0, iterator, Iterator, 0)
+ZEND_END_ARG_INFO();
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_iterator_apply, 0, 0, 2)
+ ZEND_ARG_OBJ_INFO(0, iterator, Iterator, 0)
+ ZEND_ARG_INFO(0, function)
+ ZEND_ARG_ARRAY_INFO(0, args, 0)
ZEND_END_ARG_INFO();
/* {{{ spl_functions
@@ -639,6 +646,7 @@ zend_function_entry spl_functions[] = {
#ifdef SPL_ITERATORS_H
PHP_FE(iterator_to_array, arginfo_iterator)
PHP_FE(iterator_count, arginfo_iterator)
+ PHP_FE(iterator_apply, arginfo_iterator_apply)
#endif /* SPL_ITERATORS_H */
{NULL, NULL, NULL}
};