1--TEST--
2Global variable import using a name with side effects
3--FILE--
4<?php
5
6function sf($arg) {
7    echo "called\n";
8    return $arg;
9}
10
11function test() {
12    global ${sf("a")};
13    var_dump($a);
14}
15
16$a = 42;
17test();
18
19?>
20--EXPECT--
21called
22int(42)
23