Re: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS when register_globals = on
Quoting Sascha Schumann [EMAIL PROTECTED]: - but that does make it really messy to write code that works with either setting. Yes. Feel free to propose a solution which solves your problem and which is compatible to existing scripts. What about adding session_set_var (and session_get_var, for symmetry) functions to set and access session variables regardless of scope? -chuck -- Charles Hagenbuch, [EMAIL PROTECTED] Number of U.S. nuclear bombs lost in accidents and never recovered: 11 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS when register_globals = on
+1 -Chris -Original Message- From: Alexander Feldman [mailto:[EMAIL PROTECTED]] Sent: Thursday, 05 April, 2001 1-44 pM To: Carsten Gehling Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS when register_globals = on This makes sense. The behaviour quoted below creates difficulties when writing portable scripts (not to depend on the value of register_globals). Rgds: -- Alex On Thu, 5 Apr 2001, Carsten Gehling wrote: One of the IMHO stranger behaviors in PHP is what happens to the $HTTP_SESSION_VARS array when changing register_globals from off to on. If register_globals is set to on, you cannot access $HTTP_SESSION_VARS any longer. Instead you can get the values through implicit created variables or through the $GLOBALS array. Now compare this to $HTTP_GET_VARS and $HTTP_POST_VARS. Both of these arrays are available regardless of what register_globals is set to. Shouldn't it be the same for $HTTP_SESSION_VARS ? - Carsten -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Request for new feature: $HTTP_SESSION_VARS when register_globals = on
Yes, what you're saying definitely makes sense and I think it should be fixed. Andi At 09:20 PM 4/5/2001 +0200, Carsten Gehling wrote: One of the IMHO stranger behaviors in PHP is what happens to the $HTTP_SESSION_VARS array when changing register_globals from off to on. If register_globals is set to on, you cannot access $HTTP_SESSION_VARS any longer. Instead you can get the values through implicit created variables or through the $GLOBALS array. Now compare this to $HTTP_GET_VARS and $HTTP_POST_VARS. Both of these arrays are available regardless of what register_globals is set to. Shouldn't it be the same for $HTTP_SESSION_VARS ? - Carsten -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]