diff options
| author | Marcus Boerger <helly@php.net> | 2006-06-07 09:44:42 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2006-06-07 09:44:42 +0000 |
| commit | e0844e09bd9a64c59b765dbc16b1c6834821a979 (patch) | |
| tree | e814d6d14dd6e32c2ef48d0d865dc4b6998df378 /ext/spl/php_spl.c | |
| parent | 64c353ab79e3a49ae2aba533d353d4a93fe4b099 (diff) | |
| download | php-git-e0844e09bd9a64c59b765dbc16b1c6834821a979.tar.gz | |
- MFH iterator_apply()
Diffstat (limited to 'ext/spl/php_spl.c')
| -rwxr-xr-x | ext/spl/php_spl.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/spl/php_spl.c b/ext/spl/php_spl.c index 2b61aa568e..fce87de40c 100755 --- a/ext/spl/php_spl.c +++ b/ext/spl/php_spl.c @@ -610,7 +610,14 @@ PHP_MINFO_FUNCTION(spl) static ZEND_BEGIN_ARG_INFO(arginfo_iterator, 0) - ZEND_ARG_INFO(0, iterator) + ZEND_ARG_OBJ_INFO(0, iterator, Traversable, 0) +ZEND_END_ARG_INFO(); + +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_iterator_apply, 0, 0, 2) + ZEND_ARG_OBJ_INFO(0, iterator, Traversable, 0) + ZEND_ARG_INFO(0, function) + ZEND_ARG_ARRAY_INFO(0, args, 1) ZEND_END_ARG_INFO(); /* {{{ spl_functions @@ -628,6 +635,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} }; |
