TypePHP 编译器
https://swoole.com/aot/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
360 B
18 lines
360 B
--TEST--
|
|
Bug #72369 (array_merge() produces references in PHP7)
|
|
--SKIPIF--
|
|
<?php die("skip AOT array_merge reference handling differs from PHP"); ?>
|
|
--FILE--
|
|
<?php
|
|
$x = 'xxx';
|
|
$d = ['test' => &$x];
|
|
unset($x);
|
|
$a = ['test' => 'yyy'];
|
|
$a = array_merge($a, $d);
|
|
debug_zval_dump($a);
|
|
?>
|
|
--EXPECTF--
|
|
array(1) refcount(%d){
|
|
["test"]=>
|
|
string(3) "xxx" interned
|
|
}
|
|
|