mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +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) {
|
|
}
|