summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2004-01-11 13:59:48 +0000
committerfoobar <sniper@php.net>2004-01-11 13:59:48 +0000
commitfcf131ce235e4156c091511a9020cd31887dc118 (patch)
treeac6c94b2e32101d507fd1cc4528dfa581afe945a
parent4b2a32b70116dfa834fb81c11d73048b8f6ee82e (diff)
downloadphp-git-fcf131ce235e4156c091511a9020cd31887dc118.tar.gz
add test case for bug #26869
-rw-r--r--tests/lang/bug26869.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lang/bug26869.phpt b/tests/lang/bug26869.phpt
new file mode 100644
index 0000000000..77dd2592ed
--- /dev/null
+++ b/tests/lang/bug26869.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Bug #26869 (constant as the key of static array)
+--FILE--
+<?php
+ define("A", "1");
+ static $a=array(A => 1);
+ var_dump($a);
+ var_dump(isset($a[A]));
+?>
+--EXPECT--
+array(1) {
+ [1]=>
+ int(1)
+}
+bool(true)