php-src/Zend/tests/bug72441.phpt
2020-02-03 22:52:20 +01:00

15 lines
244 B
PHP

--TEST--
Bug #72441 (Segmentation fault: RFC list_keys)
--FILE--
<?php
$array = [];
list(
'' => $foo,
$bar
) = $array;
?>
--EXPECTF--
Fatal error: Cannot mix keyed and unkeyed array entries in assignments in %sbug72441.php on line %d