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.
 
 

33 lines
474 B

--TEST--
Test extract() function (variation 6)
--SKIPIF--
<?php
if (true) die("skip AOT does not support extract()");
?>
--FILE--
<?php
/* EXTR_REFS as second Argument */
$a = array ('foo' => 'aaa');
var_dump ( extract($a, EXTR_REFS));
var_dump($foo);
$b = $a;
$b['foo'] = 'bbb';
var_dump ( extract($a, EXTR_REFS));
var_dump($foo);
var_dump($a);
echo "Done\n";
?>
--EXPECT--
int(1)
string(3) "aaa"
int(1)
string(3) "bbb"
array(1) {
["foo"]=>
&string(3) "bbb"
}
Done