]> granicus.if.org Git - php/commitdiff
- Update tests
authorMarcus Boerger <helly@php.net>
Fri, 21 Jul 2006 20:11:24 +0000 (20:11 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 21 Jul 2006 20:11:24 +0000 (20:11 +0000)
ext/spl/tests/iterator_029.phpt
ext/spl/tests/spl_004.phpt

index 00e27d47be78a4ddbdb83d5a9e52389d60499df5..3e836adef638155315455fb317021b3e1cf9ad74 100755 (executable)
@@ -16,7 +16,7 @@ foreach(new RegexIterator(new ArrayIterator($ar), "/2/") as $k => $v)
 ===KEY===
 <?php
 
-foreach(new RegexIterator(new ArrayIterator($ar), "/2/", RegexIterator::USE_KEY) as $k => $v)
+foreach(new RegexIterator(new ArrayIterator($ar), "/2/", 0, RegexIterator::USE_KEY) as $k => $v)
 {
        echo "$k=>$v\n";
 }
index 60da28042a2f4619b701bf410d02da9be9611549..179ba0f7a61a2d55412fabf4748209a62fd0f900 100755 (executable)
@@ -79,7 +79,7 @@ int(4)
 Error: Argument 3 passed to iterator_apply() must be an array, integer given
 Error: iterator_apply() expects parameter 3 to be array, integer given
 NULL
-Error: iterator_apply() expects parameter 2 to be function,%sstring given
+Error: iterator_apply() expects parameter 2 to be valid callback,%sstring given
 NULL
 Error: iterator_apply() expects at most 3 parameters, 4 given
 NULL