RE: [PHP] register_globals odd behaviour?
I just come across and odd behaviour with the register_globals and session handling. The problem is that when I set the register globals to on I cannot access the session_variables through the associative array HTTP_SESSION_VARS. The manual says explicitly that with track_vars and register_globals both on the array and the vars will point to the same. I believe this was a bug in all versions prior to 4.0.6, globals and $HTTP_SESSION_VARS did *not* reference the same value while on the current page, in spite of what the manual says. So, either upgrade to 4.0.6, or use the global version of session variables rather than the $HTTP_SESSION_VARS array. Kirk -- PHP General 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] register_globals odd behaviour?
Hi All, I just come across and odd behaviour with the register_globals and session handling. The problem is that when I set the register globals to on I cannot access the session_variables through the associative array HTTP_SESSION_VARS. The manual says explicitly that with track_vars and register_globals both on the array and the vars will point to the same. It just doesn't happen the vars are not written at the end of the script. I mean with register_globals ON: ? session_register(count); $HTTP_SESSION_VARS[count]++; ? this does not work. My php is PHP Version 4.0.3pl1 running on Linux 2.2.18 and Apache1.3.9 . Does this bogus behaviour happen with higher versions too? Thanks in advance. Sean C. McCarthy SCI, S.L. (www.sci-spain.com) -- PHP General 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]