php-src/Zend/tests/list_011.phpt
2016-05-20 01:51:05 +02:00

11 lines
185 B
PHP

--TEST--
Disallow list() usage as if it were an array
--FILE--
<?php
var_dump(list(1, 2, 3));
?>
--EXPECTF--
Parse error: syntax error, unexpected ')', expecting '=' in %s on line %d