Re: Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only
| From: | Ilia Alshanetsky | Date: | Thu, 09 Dec 2010 12:23:39 +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-50942@lists.php.net to get a copy of this message | ||
On Thu, Dec 9, 2010 at 5:14 AM, Andrey Hristov <php@hristov.com> wrote:
> Hi guys,
> 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.
I do not believe that making these read-only is going to yield any
performance benefits and
the chances of this breaking many scripts is quite large.
-1
Ilia