xref: /PHP-7.1/Zend/tests/list_011.phpt (revision 4f077aee)
1--TEST--
2Disallow list() usage as if it were an array
3--FILE--
4<?php
5
6var_dump(list(1, 2, 3));
7
8?>
9--EXPECTF--
10Parse error: syntax error, unexpected ')', expecting '=' in %s on line %d
11