mirror of
https://github.com/php/php-src.git
synced 2024-12-24 01:09:58 +08:00
14 lines
209 B
PHP
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
|