mirror of
https://github.com/php/php-src.git
synced 2024-12-13 11:54:45 +08:00
e9068cefb4
Now also includes list()s with just commas in it.
11 lines
157 B
PHP
11 lines
157 B
PHP
--TEST--
|
|
Empty list() assignments are not allowed
|
|
--FILE--
|
|
<?php
|
|
|
|
list(,,,,,,,,,,) = [];
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot use empty list in %s on line %d
|