mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
16 lines
314 B
PHP
16 lines
314 B
PHP
--TEST--
|
|
Bug #73663.2 ("Invalid opcode 65/16/8" occurs with a variable created with list())
|
|
--FILE--
|
|
<?php
|
|
function change(&$ref) {
|
|
$ref = range(1, 10);
|
|
return;
|
|
}
|
|
|
|
$array = [1];
|
|
change(list($val) = $array);
|
|
var_dump($array);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Only variables can be passed by reference in %s on line %d
|