source: src/router/php7/Zend/tests/dynamic_call_007.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 309 bytes
Line 
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)
Note: See TracBrowser for help on using the repository browser.