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.
26 lines
335 B
26 lines
335 B
--TEST--
|
|
Bug #70250 (extract() turns array elements to references)
|
|
--SKIPIF--
|
|
<?php
|
|
if (true) die("skip AOT does not support extract()");
|
|
?>
|
|
|
|
--FILE--
|
|
<?php
|
|
$array = ['key' => 'value'];
|
|
|
|
$ref = &$array['key'];
|
|
|
|
unset($ref);
|
|
|
|
extract($array);
|
|
|
|
$key = "bad";
|
|
|
|
var_dump($array);
|
|
?>
|
|
--EXPECT--
|
|
array(1) {
|
|
["key"]=>
|
|
string(5) "value"
|
|
}
|
|
|