php-src/Zend/tests/036.phpt
2008-07-28 14:10:00 +00:00

14 lines
220 B
PHP

--TEST--
Trying to use lambda in array offset
--FILE--
<?php
$test[function(){}] = 1;
$a{function() { }} = 1;
?>
--EXPECTF--
Warning: Illegal offset type in %s on line %d
Warning: Illegal offset type in %s on line %d