Re: session_register warnings

From: Date: Fri, 11 Oct 2002 13:51:23 +0000
Subject: Re: session_register warnings
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-89356@lists.php.net to get a copy of this message
Sascha, would you mind explaining the reasoning for changing this behaviour? Whether it is documented or not, I'd like to hear a technical reason for not allowing session_register() to act on global variables when register_globals is off. I still don't see it. All I see is inconsistency here. -Rasmus On Wed, 9 Oct 2002, Sascha Schumann wrote: > > I'd like to do a collective rethink of this. The simple description of > > the session_register() function in the manual is: > > This description was correct initially (I wrote it), but has > not been updated as the session module was extended. I've > noticed this documentation issue in the earlier thread, but > have not come around to fix it yet. > > If I may refer you to the session index page again, that one > clearly stated since the beginning that the behaviour > changes, depending on register_globals. > > Now, if your application(s) rely on this feature and you > don't want to change them, you can always disable the > warning. > > > make the function behave exactly as described in the short description. > > I suggest we fix the documentation. > > > 2. changing this breaks BC > > I'm not aware of any BC issues. If you have a test case, > I'll be happy to look at it. > > - Sascha >

« previous php.dev (#89356) next »