cvs: php-src /ext/spl/tests iterator_029.phpt spl_004.phpt
| From: | Marcus Boerger | Date: | Fri, 21 Jul 2006 20:11:24 +0000 |
| Subject: | cvs: php-src /ext/spl/tests iterator_029.phpt spl_004.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39427@lists.php.net to get a copy of this message | ||
helly Fri Jul 21 20:11:24 2006 UTC
Modified files:
/php-src/ext/spl/tests iterator_029.phpt spl_004.phpt
Log:
- Update tests
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/iterator_029.phpt?r1=1.4&r2=1.5&diff_format=u
Index: php-src/ext/spl/tests/iterator_029.phpt
diff -u php-src/ext/spl/tests/iterator_029.phpt:1.4 php-src/ext/spl/tests/iterator_029.phpt:1.5
--- php-src/ext/spl/tests/iterator_029.phpt:1.4 Wed May 10 16:51:18 2006
+++ php-src/ext/spl/tests/iterator_029.phpt Fri Jul 21 20:11:24 2006
@@ -16,7 +16,7 @@
===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";
}
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/tests/spl_004.phpt?r1=1.1&r2=1.2&diff_format=u
Index: php-src/ext/spl/tests/spl_004.phpt
diff -u php-src/ext/spl/tests/spl_004.phpt:1.1 php-src/ext/spl/tests/spl_004.phpt:1.2
--- php-src/ext/spl/tests/spl_004.phpt:1.1 Fri May 26 01:40:57 2006
+++ php-src/ext/spl/tests/spl_004.phpt Fri Jul 21 20:11:24 2006
@@ -79,7 +79,7 @@
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