summaryrefslogtreecommitdiff
path: root/Zend/tests/bug35470.phpt
diff options
context:
space:
mode:
authorMark A. Hershberger <mah@debian.(none)>2009-03-25 00:35:13 -0400
committerMark A. Hershberger <mah@debian.(none)>2009-03-25 00:35:13 -0400
commit0a36161e13484a99ccf69bb38f206462d27cc6d6 (patch)
treed5107db4b7369603ac7c753829e8972ee74949f7 /Zend/tests/bug35470.phpt
parentce7edc9b3c7370f32fec0bc7a8ec3e29ed9a5f61 (diff)
downloadphp-upstream/5.1.2.tar.gz
Imported Upstream version 5.1.2upstream/5.1.2
Diffstat (limited to 'Zend/tests/bug35470.phpt')
-rwxr-xr-xZend/tests/bug35470.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/bug35470.phpt b/Zend/tests/bug35470.phpt
new file mode 100755
index 000000000..3d708862c
--- /dev/null
+++ b/Zend/tests/bug35470.phpt
@@ -0,0 +1,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