diff options
| author | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:35:13 -0400 |
|---|---|---|
| committer | Mark A. Hershberger <mah@debian.(none)> | 2009-03-25 00:35:13 -0400 |
| commit | 0a36161e13484a99ccf69bb38f206462d27cc6d6 (patch) | |
| tree | d5107db4b7369603ac7c753829e8972ee74949f7 /Zend/tests/bug35470.phpt | |
| parent | ce7edc9b3c7370f32fec0bc7a8ec3e29ed9a5f61 (diff) | |
| download | php-upstream/5.1.2.tar.gz | |
Imported Upstream version 5.1.2upstream/5.1.2
Diffstat (limited to 'Zend/tests/bug35470.phpt')
| -rwxr-xr-x | Zend/tests/bug35470.phpt | 11 |
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
|
