Re: Re: Why does $_REQUEST exist?
| From: | Rasmus Lerdorf | Date: | Mon, 18 May 2009 19:39:47 +0000 |
| Subject: | Re: Re: Why does $_REQUEST exist? | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44028@lists.php.net to get a copy of this message | ||
Jani Taskinen wrote:
> Michael Shadle wrote:
>> On Mon, May 18, 2009 at 4:38 AM, Christian Schneider
>> <cschneid@cschneid.com> wrote:
>>
>>> There's a big difference between changing some rare features (and no,
>>> 5.3 needs - almost no to - no changes with the code bases I know) and
>>> removing something *everybody* uses.
>>>
>>> Apart from the fact that _REQUEST is not evil per se, the new setting
>>> request_order turns it into something sane again...
>>>
>>> So please let's end (at least the public) discussion here ;-)
>>
>> Not *everybody* uses it.
>>
>> a) Once again I'll use python as an example, you -can- break backwards
>> compatibility to finally break free of certain stigmas
>
> PHP != Python. PHP has lot more users. ;)
>
>> b) Would it be possible to tweak request_order so if it is blank, it
>> does not even create $_REQUEST? That I suppose would be good enough
>> for me.
>
> Just leave request_order empty in your php.ini and $_REQUEST will be
> empty. Now, please stop spamming the list about this issue.
I think it defaults back to variables_order if you do that actually, but
you could set it to just "G" and then $_REQUEST will be the same as
$_GET which should also be fine for people who don't like to mix them.
-Rasmus