mirror of
https://github.com/php/php-src.git
synced 2024-12-14 04:16:30 +08:00
12 lines
209 B
Plaintext
12 lines
209 B
Plaintext
|
--TEST--
|
||
|
Bug #35470 (Assigning global using variable name from array doesn't function)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$x = array("test", "55");
|
||
|
global ${$x[0]};
|
||
|
${$x[0]} = $x[1];
|
||
|
echo "Test: $test\n";;
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
Test: 55
|