mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
6d4de4cf05
Support list() reference assignments of the form: list(&$a, list(&$b, $c)) = $d; RFC: https://wiki.php.net/rfc/list_reference_assignment
10 lines
201 B
PHP
10 lines
201 B
PHP
--TEST--
|
|
"Reference Unpacking - Compile Error (const)" list()
|
|
--FILE--
|
|
<?php
|
|
const FOO = 10;
|
|
[&$f] = FOO;
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot assign reference to non referencable value in %s on line %d
|