mirror of
https://github.com/php/php-src.git
synced 2024-10-16 22:12:33 +00:00
14 lines
220 B
Plaintext
14 lines
220 B
Plaintext
|
--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
|