summaryrefslogtreecommitdiff
path: root/Zend/tests/foreach_list_004.phpt
blob: fd48e8a1f34badcdef3263e0670bfe71a2e664f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
foreach with empty list
--FILE--
<?php

$array = [['a', 'b'], 'c', 'd'];

foreach($array as $key => list()) {
}

?>
--EXPECTF--
Fatal error: Cannot use empty list in %sforeach_list_004.php on line %d