php-src/Zend/tests/bug35470.phpt
2017-06-26 00:23:25 +02:00

12 lines
208 B
PHP

--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