mirror of
https://github.com/php/php-src.git
synced 2024-11-24 18:34:21 +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) {
|
|
}
|