|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-07-20 11:14 UTC] sniper@php.net
[2003-07-20 11:15 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 06:00:01 2025 UTC |
Description: ------------ Using up to date version from RedHat 8.0, 4.2.2 Calling the function below will stuff up saving of _ALL_ session data: Reproduce code: --------------- function import_session_variables ($prefix) { global $_SESSION; $tab = $_SESSION; reset($tab); while (!is_null($key = key($tab) ) ) { $var = $prefix.$key; global $$var; $$var = $_SESSION[$key]; next($tab); } // if you uncomment the next line sessions will save // hence i have a work around // it'd be nice to have it fixed properly though // reset($tab); } Expected result: ---------------- import all the session variable AND the session should still save correctly Actual result: -------------- imports all the session variables BUT sessions ARE NOT saved