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
377 B
23 lines
377 B
--TEST--
|
|
Bug #44182 (extract EXTR_REFS can fail to split copy-on-write references)
|
|
--SKIPIF--
|
|
<?php
|
|
if (true) die("skip AOT does not support extract()");
|
|
?>
|
|
|
|
--FILE--
|
|
<?php
|
|
$a = array('foo' => 'original.foo');
|
|
|
|
$nonref = $a['foo'];
|
|
$ref = &$a;
|
|
|
|
extract($a, EXTR_REFS);
|
|
$a['foo'] = 'changed.foo';
|
|
|
|
var_dump($nonref);
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
string(%d) "original.foo"
|
|
Done
|
|
|