Red Hat Bugzilla – Bug 185357
local variables clobber session variables
Last modified: 2007-11-30 17:07:23 EST
Description of problem:
Local variables clobber session variables.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a php script with the following code:
$_SESSION['foo'] = "foo";
$foo = "bar";
2. Run the script.
Script outputs "bar".
Script should output "foo".
register_globals if off
Created attachment 126076 [details]
Script that will reproduce the bug.
Sorry, that should say under "Additional info" that register globals *is* off
I am an idiot...
There was a .htaccess file turning on register_globals...
Please close this bug as I'm not the owner and bugzilla won't allow me to.
Thanks for contacting us. Glad to hear you tracked the issue down.