summaryrefslogtreecommitdiff
path: root/Zend/tests/036.phpt
blob: 3ff522b16f06e782136713179026c286c2bc6657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Trying to use lambda in array offset
--FILE--
<?php

$test[function(){}] = 1;
$a{function() { }} = 1;

?>
--EXPECTF--

Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d

Warning: Illegal offset type in %s on line %d

Warning: Illegal offset type in %s on line %d