]> granicus.if.org Git - php/commitdiff
Fix the test. (this was mixed test with bug #24159)
authorfoobar <sniper@php.net>
Wed, 13 Aug 2003 09:48:20 +0000 (09:48 +0000)
committerfoobar <sniper@php.net>
Wed, 13 Aug 2003 09:48:20 +0000 (09:48 +0000)
ext/standard/tests/array/bug21918.phpt

index 8f7246c1b23b451bb2479363a32b8e981ec272e5..1c9d746fdf69df24f8e4bbd3231fb226ffba6a40 100755 (executable)
@@ -1,4 +1,5 @@
 --TEST--
+Bug #21918 (different handling of positive vs. negative array indexes)
 --FILE--
 <?php
 
@@ -21,7 +22,6 @@ foreach($b as $k => $v) {
 
 echo "==Negative==\n";
 $c = array('-2' => 'a');
-$c[] = 'b';
 
 foreach($c as $k => $v) {
        var_dump($k);
@@ -52,6 +52,4 @@ string(1) "a"
 ==Negative==
 int(-2)
 string(1) "a"
-int(-1)
-string(1) "b"
 ==Done==