mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-08 01:37:30 +00:00
Add missed tests for FETCH_GLOBAL_LOCK change
This commit is contained in:
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)
|
||||
Reference in new issue
Block a user