helly Sat Mar 20 11:14:52 2004 EDT
Modified files:
/php-src/ext/spl/tests array_iterator.phpt
Log:
Fix test
http://cvs.php.net/diff.php/php-src/ext/spl/tests/array_iterator.phpt?r1=1.5&r2=1.6&ty=u
Index: php-src/ext/spl/tests/array_iterator.phpt
diff -u php-src/ext/spl/tests/array_iterator.phpt:1.5
php-src/ext/spl/tests/array_iterator.phpt:1.6
--- php-src/ext/spl/tests/array_iterator.phpt:1.5 Mon Mar 8 12:33:31 2004
+++ php-src/ext/spl/tests/array_iterator.phpt Sat Mar 20 11:13:37 2004
@@ -2,6 +2,8 @@
SPL: ArrayIterator
--SKIPIF--
<?php if (!extension_loaded("spl")) print "skip"; ?>
+--INI--
+allow_call_time_pass_reference=1
--FILE--
<?php
@@ -26,6 +28,9 @@
foreach($obj as $ak=>$av) {
foreach($obj as $bk=>$bv) {
+ if ($ak==0 && $bk==0) {
+ $arr[0] = "modify";
+ }
echo "$ak=>$av - $bk=>$bv\n";
}
}
@@ -89,10 +94,10 @@
0=>0 - 0=>0
0=>0 - 1=>1
0=>0 - 2=>2
-1=>1 - 0=>0
+1=>1 - 0=>modify
1=>1 - 1=>1
1=>1 - 2=>2
-2=>2 - 0=>0
+2=>2 - 0=>modify
2=>2 - 1=>1
2=>2 - 2=>2
==Modify==
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php