blob: 440eabc65279e6466e711eff5cbdf0f4d8af017e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--TEST--
Can't use arrays as key for constant array
--FILE--
<?php
const C1 = 1; // force dynamic evaluation
const C2 = [C1, [] => 1];
?>
--EXPECTF--
Fatal error: Illegal offset type in %s on line %d
|