xref: /PHP-7.0/Zend/tests/036.phpt (revision e0625942)
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--
11Warning: Illegal offset type in %s on line %d
12
13Warning: Illegal offset type in %s on line %d
14