xref: /PHP-7.4/Zend/tests/dynamic_call_007.phpt (revision 91f59403)
1--TEST--
2Dynamic calls to scope introspection functions are forbidden (misoptimization)
3--FILE--
4<?php
5
6function test() {
7    $i = 1;
8    array_map('extract', [['i' => new stdClass]]);
9    $i += 1;
10    var_dump($i);
11}
12test();
13
14?>
15--EXPECTF--
16Warning: Cannot call extract() dynamically in %s on line %d
17int(2)
18