mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
16 lines
268 B
PHP
16 lines
268 B
PHP
--TEST--
|
|
Using lambda with list()
|
|
--FILE--
|
|
<?php
|
|
|
|
list($x, $y) = function() { };
|
|
|
|
var_dump($x, $y);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Cannot use object of type Closure as array in %slist_007.php:3
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %slist_007.php on line 3
|