From c9d1212cf241123dcf3db2a734bdc3530a6fbef6 Mon Sep 17 00:00:00 2001 From: foobar Date: Thu, 6 Feb 2003 15:24:08 +0000 Subject: [PATCH] MFH --- ext/standard/tests/array/bug22088.phpt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/ext/standard/tests/array/bug22088.phpt b/ext/standard/tests/array/bug22088.phpt index 827da25599..4352cff914 100644 --- a/ext/standard/tests/array/bug22088.phpt +++ b/ext/standard/tests/array/bug22088.phpt @@ -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-- 1, 'b' => 2, 'c' => 3); +$last = array_shift ($a); +$a[] = 'a'; +var_dump($a); + ?> --EXPECT-- array(3) { @@ -18,3 +23,11 @@ array(3) { [2]=> string(1) "a" } +array(3) { + ["b"]=> + int(2) + ["c"]=> + int(3) + [0]=> + string(1) "a" +} -- 2.50.1