mirror of
https://github.com/php/php-src.git
synced 2024-12-24 17:30:48 +08:00
13 lines
172 B
PHP
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) {
|
|
}
|