]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Sun, 11 Jan 2004 13:59:49 +0000 (13:59 +0000)
committerSVN Migration <svn@php.net>
Sun, 11 Jan 2004 13:59:49 +0000 (13:59 +0000)
tests/lang/bug26869.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug26869.phpt b/tests/lang/bug26869.phpt
new file mode 100644 (file)
index 0000000..77dd259
--- /dev/null
@@ -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)