php-src/tests/lang/bug26869.phpt
2004-01-11 13:59:48 +00:00

16 lines
213 B
PHP

--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)