mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +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)
|