From: foobar Date: Thu, 1 Aug 2002 16:39:14 +0000 (+0000) Subject: Add test for the index resetting. X-Git-Tag: dev~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=362fc4ee76967a7ebdd6490e522ace26b1ddc1c2;p=php Add test for the index resetting. --- diff --git a/ext/standard/tests/array/006.phpt b/ext/standard/tests/array/006.phpt index 9c699cd672..8a495e50a2 100644 --- a/ext/standard/tests/array/006.phpt +++ b/ext/standard/tests/array/006.phpt @@ -13,6 +13,7 @@ $c = array("a" => "foo", "b" => "bar", "c" => "fubar"); /* simple array */ echo array_pop($a), "\n"; +array_push($a, "foobar"); var_dump($a); /* numerical assoc indices */ @@ -26,11 +27,13 @@ var_dump($c); ?> --EXPECT-- fubar -array(2) { +array(3) { [0]=> string(3) "foo" [1]=> string(3) "bar" + [2]=> + string(6) "foobar" } fubar array(2) {