sniper Mon Jun 30 13:30:47 2003 EDT Added files: (Branch: PHP_4_3) /php-src/tests/lang bug24396.phpt Log: MFH
Index: php-src/tests/lang/bug24396.phpt +++ php-src/tests/lang/bug24396.phpt --TEST-- Bug #24396 (global $$variable broken) --FILE-- <?php $arr = array('a' => 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) -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php