summaryrefslogtreecommitdiff
path: root/Zend/tests/bug35470.phpt
blob: 5a854552bb12e2f2fafbd894567552dbbf17cc97 (plain)
1
2
3
4
5
6
7
8
9
10
11
--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