sniper Thu Feb 6 10:04:54 2003 EDT
Added files:
/php4/ext/standard/tests/array bug22088.phpt
Log:
Added testcase for bug #22088
Index: php4/ext/standard/tests/array/bug22088.phpt
+++ php4/ext/standard/tests/array/bug22088.phpt
--TEST--
Bug #21998 (array_shift() leaves next index to be +1 too much)
--FILE--
<?php
$a = array('a', 'b', 'c');
$last = array_shift ($a);
$a[] = 'a';
var_dump($a);
?>
--EXPECT--
array(3) {
[0]=>
string(1) "b"
[1]=>
string(1) "c"
[2]=>
string(1) "a"
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php