Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only
| From: | Andrey Hristov | Date: | Thu, 09 Dec 2010 10:14:22 +0000 |
| Subject: | Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-50921@lists.php.net to get a copy of this message | ||
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.
The reason for global + GLOBALS is that these are abused and which leads to spaghetti programs, when used by unexperienced users. Also they have impact on side effects from functions that don't only rely their parameters.
Best,
Andrey