From 6a62b9d5b708829050610d568d2d220b2e95be85 Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Mon, 30 Jun 2003 17:30:17 +0000 Subject: [PATCH] This commit was manufactured by cvs2svn to create branch 'PHP_4_3'. --- tests/lang/bug24396.phpt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/lang/bug24396.phpt 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) -- 2.50.1