Re: register_globals off or on, why on
| From: | Rasmus Lerdorf | Date: | Sun, 25 Aug 2002 17:31:01 +0000 |
| Subject: | Re: register_globals off or on, why on | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114064@lists.php.net to get a copy of this message | ||
> I'm working on a site where I'm using geeklog
> http://geeklog.sourceforge.net/
>
> It has the requirement that
>
> > "Geeklog needs the register_globals variable turned on in order to work.
> > Since PHP 4.2.0, the default for register_globals is "off". To fix it,
> > simply add the following line to your php.ini file
>
> Is this not *wrong*. It sounds to me like fake laziness. Nothing drives
> me bonkers more than trying to track down a variable that is inherited
> from who knows where.
If you initialize all your local variables, there is nothing wrong with
having register_globals on. Well-written apps run quite nicely and
securely with them on. The reason to turn them off is to protect yourself
from crappy code.
-Rasmus