blob: f1312b95b47a3674dbe99dfd59837438c171d45f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
--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);
}
test();
?>
--EXPECT--
Cannot call extract() dynamically
int(2)
|