summaryrefslogtreecommitdiff
path: root/tests/lang/bug26869.phpt
blob: 065cf1dd67da77631034abc58db5b69115dcad49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)