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

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

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