summaryrefslogtreecommitdiff
path: root/tests/lang/bug26869.phpt
blob: 77dd2592edf9599e1ec7971b47d2f4e44f2b53b9 (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)