mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
16 lines
213 B
Plaintext
16 lines
213 B
Plaintext
|
--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)
|