Re: Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only
| From: | Johannes Schlüter | Date: | Thu, 09 Dec 2010 20:14:51 +0000 |
| Subject: | Re: Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50977@lists.php.net to get a copy of this message | ||
On Thu, 2010-12-09 at 14:58 -0500, Michael Morris wrote:
> Since $_INPUT would be read only from inception nothing can break because it
> can't be written to. At an INI level the option to turn off the legacy
> superglobals it replaces might be added, but that's a separate issue.
The filter extension already provides read-only ways for accessing
request data. Abusing a variable and adding new semantics there is
nogood thing. (Especially thinking aobut the complications in regards to
references .. $a = &$_INPUT['POST']['bar']; $a = 23; etc.)
johannes