Re: The so-called improvment in PHP 4.2.0
| From: | Rouvas Stathis | Date: | Tue, 23 Apr 2002 15:46:55 +0000 |
| Subject: | Re: The so-called improvment in PHP 4.2.0 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-94183@lists.php.net to get a copy of this message | ||
Erik Price wrote:
>
> On Tuesday, April 23, 2002, at 06:48 AM, Rouvas Stathis wrote:
>
> >> This change improves your security, so it'd be rational to be happy
> >> about
> >> it.
> >
> > No it doesn't. It just provides another excuse for lazy programming.
> > Nothing will save a lazy programmer or one that doesn't understand basic
> > principles.
>
> While I agree that it doesn't improve security much if the coder was
> already using $HTTP_SESSION_VARS (which he/she should have been doing),
> it definitely does not promote lazy programming. If anything,
> registering all the variables as global promotes lazy programming!
> Sure, it's convenient to be able to access a variable with this shorter
> method, but do you really want all of these different session variables,
> post variables, get variables, cookie variables, and server variables
> sharing the same global namespace/scope? (I use that last term loosely.)
Preventing namespace pollution...now you convince me.
I used the term "lazy programming" without explaining what I meant,
hence the misunderstanding. I refer to "lazy programming" in the sense
of not properly and thoroughly checking user input, or as I believe, any
input from external to you code sources. If you don't do that I don't
believe that anything will save you. Promoting superglobals as a
security enhanchment, no I don't buy that.
-Stathis.
>
> IMHO that is much lazier than using superglobals with register_globals
> off.
>
> Erik
>
> ----
>
> Erik Price
> Web Developer Temp
> Media Lab, H.H. Brown
> pricee@hhbrown.com