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