php-src/Zend/tests/list_012.phpt

11 lines
174 B
Plaintext
Raw Normal View History

--TEST--
Disallow empty elements in normal arrays
--FILE--
<?php
var_dump([, 1, 2]);
?>
--EXPECTF--
Fatal error: Cannot use empty array elements in arrays in %s on line %d