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