xref: /PHP-8.0/Zend/tests/list_013.phpt (revision 9c8e1c03)
1--TEST--
2Disallow tail empty elements in normal arrays
3--FILE--
4<?php
5
6var_dump([1, 2, ,]);
7
8?>
9--EXPECTF--
10Fatal error: Cannot use empty array elements in arrays in %s on line %d
11