blob: 67c65245ccf673ea89ecde5abcbf645d9dc4b09c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--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
|