Add missed tests for FETCH_GLOBAL_LOCK change

This commit is contained in:
Nikita Popov committed 2015-12-10 19:17:17 +01:00
1 parent 11f2a393f8
commit 288cc6e192
1 file changed
+22
@@ -0,0 +1,22 @@
--TEST--
Global variable import using a name with side effects
--FILE--
<?php
function sf($arg) {
echo "called\n";
return $arg;
}
function test() {
global ${sf("a")};
var_dump($a);
}
$a = 42;
test();
?>
--EXPECT--
called
int(42)