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

13 lines
172 B
PHP

--TEST--
Trying to use lambda as array key
--FILE--
<?php
var_dump(array(function() { } => 1));
?>
--EXPECTF--
Warning: Illegal offset type in %s on line %d
array(0) {
}