xref: /PHP-8.1/Zend/tests/list_011.phpt (revision 55a15f32)
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 token ")", expecting "=" in %s on line %d
11