View Full Version : Session PHP Bug
10-18-2004, 08:29 PM
Was anyone aware of the PHP session bug(?) that doesn't allow use of numeric indexes? I wasn't until the other day and haven't read anything on php.net about it before.
10-19-2004, 03:24 AM
Can we get a link to wherever you found this? I've like to read it.
10-19-2004, 03:27 AM
all variables in PHP have to start with a letter or an underscore.
when you set a super_global like $_SESSION['varname'] , imagine you have register_globals=on (which you shouldn't ;)) this then can be accessed via $varname, so $_SESSION (in that line of thought) equates to $1 which is not valid.
That PHP does not give a parse error on attempting to set $_SESSION='blah'; could perhaps be described as a bug ?
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.