From: SVN Migration Date: Mon, 30 Jun 2003 17:30:17 +0000 (+0000) Subject: This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. X-Git-Tag: php-4.3.3RC2~207 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a62b9d5b708829050610d568d2d220b2e95be85;p=php This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- diff --git a/tests/lang/bug24396.phpt b/tests/lang/bug24396.phpt new file mode 100644 index 0000000000..b78e4b8757 --- /dev/null +++ b/tests/lang/bug24396.phpt @@ -0,0 +1,19 @@ +--TEST-- +Bug #24396 (global $$variable broken) +--FILE-- + 1, 'b' => 2, 'c' => 3); + +foreach($arr as $k=>$v) { + global $$k; // comment this out and it works in PHP 5 too.. + + echo "($k => $v)\n"; + + $$k = $v; +} +?> +--EXPECT-- +(a => 1) +(b => 2) +(c => 3)