Re: Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only
| From: | Lars Schultz | Date: | Thu, 09 Dec 2010 13:02:44 +0000 |
| Subject: | Re: Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-50948@lists.php.net to get a copy of this message | ||
is there any benefit in removing those features? I can see that Code using these features is probably designed badly or unconventionally, but php has never been a designers-language...right? It's always been about being easy to use.
Even without globals you can still use:
Class GLOBALS{
public static $foo;} GLOBALS::$foo = 'x'; so...you can't keep people from hurting themselves...right? -1 Cheers, Lars