Re: _REQUEST and variable_order

From: Date: Thu, 07 Feb 2008 03:36:45 +0000
Subject: Re: _REQUEST and variable_order
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-35277@lists.php.net to get a copy of this message
Sam Barrow wrote:
On Wed, 2008-02-06 at 16:39 -0800, Stanislav Malyshev wrote: [snip]
The proposal(s): 1. One way to fix it is to create a new .ini request_order that would control just _REQUEST. 2. Other solution would be to keep variables_order but drop 'C' parsing from _REQUEST - i.e. make _REQUEST never include cookies. I don't know how many people really need cookies together with get/post in REQUEST.
I like this. $_REQUEST is used by me and most PHP developers I know solely for the purpose of abstracting $_GET and $_POST. But user input never comes directly from cookies (what user fills in a login form by setting cookies?), so I don't see a point of including them.
I also like solution #2, I always read cookies using $_COOKIE. -- Jessie Hernandez Zend Certified Engineer (http://zend.com/zce.php?c=ZEND006359&r=222727282)

« previous php.internals (#35277) next »