sniper Thu Feb 6 10:22:41 2003 EDT
Modified files:
/php4/ext/standard/tests/array bug22088.phpt
Log:
fix the test
Index: php4/ext/standard/tests/array/bug22088.phpt
diff -u php4/ext/standard/tests/array/bug22088.phpt:1.1
php4/ext/standard/tests/array/bug22088.phpt:1.2
--- php4/ext/standard/tests/array/bug22088.phpt:1.1 Thu Feb 6 10:04:53 2003
+++ php4/ext/standard/tests/array/bug22088.phpt Thu Feb 6 10:22:41 2003
@@ -1,5 +1,5 @@
--TEST--
-Bug #21998 (array_shift() leaves next index to be +1 too much)
+Bug #22088 (array_shift() leaves next index to be +1 too much)
--FILE--
<?php
@@ -8,6 +8,11 @@
$a[] = 'a';
var_dump($a);
+$a = array('a' => 1, 'b' => 2, 'c' => 3);
+$last = array_shift ($a);
+$a[] = 'a';
+var_dump($a);
+
?>
--EXPECT--
array(3) {
@@ -16,5 +21,13 @@
[1]=>
string(1) "c"
[2]=>
+ string(1) "a"
+}
+array(3) {
+ ["b"]=>
+ int(2)
+ ["c"]=>
+ int(3)
+ [0]=>
string(1) "a"
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php