/
proc
/
3430793
/
cwd
/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
standard
/
tests
/
array
/
File Upload :
llllll
Current File: //proc/3430793/cwd/usr/local/lsws/phpbuild/php-8.0.7/ext/standard/tests/array/bug22088.phpt
--TEST-- Bug #22088 (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); $a = array('a' => 1, 'b' => 2, 'c' => 3); $last = array_shift ($a); $a[] = 'a'; var_dump($a); ?> --EXPECT-- array(3) { [0]=> string(1) "b" [1]=> string(1) "c" [2]=> string(1) "a" } array(3) { ["b"]=> int(2) ["c"]=> int(3) [0]=> string(1) "a" }
Copyright ©2k19 -
Hexid
|
Tex7ure