xref: /PHP-7.4/Zend/tests/036.phpt (revision d574df63)
1--TEST--
2Trying to use lambda in array offset
3--FILE--
4<?php
5
6$test[function(){}] = 1;
7$a{function() { }} = 1;
8
9?>
10--EXPECTF--
11
12Deprecated: Array and string offset access syntax with curly braces is deprecated in %s line %d
13
14Warning: Illegal offset type in %s on line %d
15
16Warning: Illegal offset type in %s on line %d
17