php-src/Zend/tests/foreach_list_004.phpt
2012-08-26 13:05:33 +08:00

14 lines
209 B
PHP

--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