summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2006-07-21 21:26:11 +0000
committerMarcus Boerger <helly@php.net>2006-07-21 21:26:11 +0000
commit6a738f6b5b54648eb6dd6dc18051731cd25cd8b0 (patch)
tree7ef3d4e316e2fa7f351894c2aae5964f7c622d64 /ext
parent85963e63001e3df55a5a36b7e27abd3809592492 (diff)
downloadphp-git-6a738f6b5b54648eb6dd6dc18051731cd25cd8b0.tar.gz
- MFH Match code with docu
Diffstat (limited to 'ext')
-rwxr-xr-xext/spl/internal/recursiveregexiterator.inc6
-rwxr-xr-xext/spl/spl_iterators.c3
2 files changed, 6 insertions, 3 deletions
diff --git a/ext/spl/internal/recursiveregexiterator.inc b/ext/spl/internal/recursiveregexiterator.inc
index 21e7599a7d..bab8cab460 100755
--- a/ext/spl/internal/recursiveregexiterator.inc
+++ b/ext/spl/internal/recursiveregexiterator.inc
@@ -25,14 +25,14 @@ class RecursiveRegexIterator extends RegexIterator implements RecursiveIterator
*
* @param it inner iterator
* @param regex the regular expression to match
- * @param flags special flags (self::USE_KEY)
* @param mode operation mode (one of self::MATCH, self::GET_MATCH,
* self::ALL_MATCHES, self::SPLIT)
+ * @param flags special flags (self::USE_KEY)
* @param preg_flags global PREG_* flags, see preg_match(),
* preg_match_all(), preg_split()
*/
- function __construct(RecursiveIterator $it, $regex, $flags = 0, $mode = 0, $preg_flags = 0) {
- parent::__construct($it, $regex, $flags, $mode, $preg_flags);
+ function __construct(RecursiveIterator $it, $regex, $mode = 0, $flags = 0, $preg_flags = 0) {
+ parent::__construct($it, $regex, $mode, $flags, $preg_flags);
}
/** @return whether the current element has children
diff --git a/ext/spl/spl_iterators.c b/ext/spl/spl_iterators.c
index c6bf712f4e..195c500355 100755
--- a/ext/spl/spl_iterators.c
+++ b/ext/spl/spl_iterators.c
@@ -1714,7 +1714,9 @@ static
ZEND_BEGIN_ARG_INFO_EX(arginfo_rec_regex_it___construct, 0, 0, 2)
ZEND_ARG_OBJ_INFO(0, iterator, RecursiveIterator, 0)
ZEND_ARG_INFO(0, regex)
+ ZEND_ARG_INFO(0, mode)
ZEND_ARG_INFO(0, flags)
+ ZEND_ARG_INFO(0, preg_flags)
ZEND_END_ARG_INFO();
static zend_function_entry spl_funcs_RecursiveRegexIterator[] = {
@@ -2853,6 +2855,7 @@ PHP_MINIT_FUNCTION(spl_iterators)
REGISTER_SPL_STD_CLASS_EX(IteratorIterator, spl_dual_it_new, spl_funcs_IteratorIterator);
REGISTER_SPL_ITERATOR(IteratorIterator);
+ REGISTER_SPL_IMPLEMENTS(IteratorIterator, OuterIterator);
REGISTER_SPL_SUB_CLASS_EX(FilterIterator, IteratorIterator, spl_dual_it_new, spl_funcs_FilterIterator);
spl_ce_FilterIterator->ce_flags |= ZEND_ACC_EXPLICIT_ABSTRACT_CLASS;