php-src/Zend/tests/list_empty_error.phpt
Nikita Popov e9068cefb4 Make empty list() check stricter
Now also includes list()s with just commas in it.
2015-01-09 18:27:06 +01:00

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