summaryrefslogtreecommitdiff
path: root/Zend/tests/list_011.phpt
blob: 316498c4116860df7ef6d80070e15d1c36afc4b8 (plain)
1
2
3
4
5
6
7
8
9
10
--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