mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
17 lines
309 B
PHP
17 lines
309 B
PHP
--TEST--
|
|
Dynamic calls to scope introspection functions are forbidden (misoptimization)
|
|
--FILE--
|
|
<?php
|
|
|
|
function test() {
|
|
$i = 1;
|
|
array_map('extract', [['i' => new stdClass]]);
|
|
$i += 1;
|
|
var_dump($i);
|
|
}
|
|
test();
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Cannot call extract() dynamically in %s on line %d
|
|
int(2)
|