mirror of
https://github.com/php/php-src.git
synced 2024-12-14 12:26:19 +08:00
14 lines
220 B
PHP
14 lines
220 B
PHP
--TEST--
|
|
Trying to use lambda in array offset
|
|
--FILE--
|
|
<?php
|
|
|
|
$test[function(){}] = 1;
|
|
$a{function() { }} = 1;
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Illegal offset type in %s on line %d
|
|
|
|
Warning: Illegal offset type in %s on line %d
|