RE: [PHP-DEV] Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only

From: Date: Thu, 09 Dec 2010 12:27:19 +0000
Subject: RE: [PHP-DEV] Deprecating "global" + $GLOBALS, making $_REQUEST, $_GET, $_POST read-only
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-50943@lists.php.net to get a copy of this message
-----Original Message----- From: Ilia Alshanetsky [mailto:ilia@prohost.org] 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 ------- One other potential negative... By making them read only, are you removing the ability to scrub/delete them? Surely this is bad point? J

« previous php.internals (#50943) next »