Re: Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only
| From: | Adam Harvey | Date: | Thu, 09 Dec 2010 12:40:06 +0000 |
| Subject: | Re: Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50945@lists.php.net to get a copy of this message | ||
On 9 December 2010 18:14, Andrey Hristov <php@hristov.com> wrote:
> the topic says most of it. What do you think about deprecating the global
> keyword and $GLOBALS with it? Together with this making $_REQUEST, $_GET and
> $_POST read-only as they should be used only to read-only anyway.
-1 here. No question that if you were developing a new language with
similar design goals to PHP (but learning from the missteps), you'd
probably make the superglobal analogues read only and skip the idea of
$GLOBALS altogether, but there's just too much code out there that
relies on these "features" working.
Adam