[nycphp-talk] A Cautionary Tale & then a question...
Hans Zaunere
hans at nyphp.org
Sat Sep 6 16:37:24 EDT 2003
Jeff Knight wrote:
> On Friday, September 5, 2003, at 11:30 AM, Chris Snyder wrote:
>
>> Waitaminit!
>>
>> What if the version of PHP on the new server didn't support $_REQUEST?
>> And had register_globals turned on?
>> I think you might get those results, then, eh?
>>
>
> Since Hans is the administrator of the server, I highly doubt that that
> is the case.
$_REQUEST is available, but register_globals is on :(
*duck*
It has to be on to support most third-parts apps.
> On Friday, September 5, 2003, at 11:27 AM, Chris Snyder wrote:
>
>> If that's an "outside world" setup, I think I'm happy to stay in my
>> own little self-contained niche where I can declare an array implicitly.
>> As far as I can tell, your original code would work on my servers.
>
>
> Events will always conspire to ensure that you will eventually come to
> regret not maintaining portability. Machines get fried, ISP's go out of
> business, somebody somewhere spills a drink and BAM! you've got to do
> the little dance.
It seems register_globals still haunts us. I think it's safe to say that register_globals was a *bad idea*.
H
More information about the talk
mailing list