mirror of
https://github.com/php/php-src.git
synced 2024-12-11 19:04:38 +08:00
16 lines
213 B
PHP
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)
|