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
390 B
23 lines
390 B
--TEST--
|
|
Dynamic calls to scope introspection functions are forbidden (misoptimization)
|
|
--FILE--
|
|
<?php
|
|
|
|
function test() {
|
|
$i = 1;
|
|
try {
|
|
array_map('extract', [['i' => new stdClass]]);
|
|
} catch (\Error $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
$i += 1;
|
|
var_dump($i);
|
|
}
|
|
|
|
function main() {
|
|
test();
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
Cannot call extract() dynamically
|
|
int(2)
|
|
|