summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug21918.phpt
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-08-13 09:48:20 +0000
committerfoobar <sniper@php.net>2003-08-13 09:48:20 +0000
commit604b06e4ca1f5a06a6168a3d09f0041fd5743152 (patch)
tree9e8d52dcb2349f300e80decb89a0a0a7da04419a /ext/standard/tests/array/bug21918.phpt
parentdc82ca11b4b7f155a23005cbbdc23c7932738d5d (diff)
downloadphp-git-604b06e4ca1f5a06a6168a3d09f0041fd5743152.tar.gz
Fix the test. (this was mixed test with bug #24159)
Diffstat (limited to 'ext/standard/tests/array/bug21918.phpt')
-rwxr-xr-xext/standard/tests/array/bug21918.phpt4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/standard/tests/array/bug21918.phpt b/ext/standard/tests/array/bug21918.phpt
index 8f7246c1b2..1c9d746fdf 100755
--- a/ext/standard/tests/array/bug21918.phpt
+++ b/ext/standard/tests/array/bug21918.phpt
@@ -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==