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.
 
 

23 lines
372 B

--TEST--
Bug #77793: Segmentation fault in extract() when overwriting reference with itself
--SKIPIF--
<?php
if (true) die("skip AOT does not support extract()");
?>
--FILE--
<?php
$str = 'foo';
$vars = ['var' => $str . 'bar'];
$var = &$vars['var'];
extract($vars);
var_dump($vars, $var);
?>
--EXPECT--
array(1) {
["var"]=>
&string(6) "foobar"
}
string(6) "foobar"