diff options
author | foobar <sniper@php.net> | 2004-01-11 13:59:48 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2004-01-11 13:59:48 +0000 |
commit | fcf131ce235e4156c091511a9020cd31887dc118 (patch) | |
tree | ac6c94b2e32101d507fd1cc4528dfa581afe945a | |
parent | 4b2a32b70116dfa834fb81c11d73048b8f6ee82e (diff) | |
download | php-git-fcf131ce235e4156c091511a9020cd31887dc118.tar.gz |
add test case for bug #26869
-rw-r--r-- | tests/lang/bug26869.phpt | 15 |
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) |