mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

list_is_keyed() did not take into account that there may be AST_UNPACK elements. These would error lateron anyway, but still produce an invalid access here.
10 lines
216 B
PHP
10 lines
216 B
PHP
--TEST--
|
|
Spread operator is not supported in destructuring assignments (only spread)
|
|
--FILE--
|
|
<?php
|
|
|
|
[...$x] = [1, 2, 3];
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Spread operator is not supported in assignments in %s on line %d
|