Re: $_PARAMETERS Super Global Object

From: Date: Wed, 22 Feb 2012 15:50:51 +0000
Subject: Re: $_PARAMETERS Super Global Object
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-57953@lists.php.net to get a copy of this message
On Wed, 2012-02-22 at 09:57 -0500, Michael Morris wrote: > Before writing up a full RFC I want to put out a feeler on something. > Currently we have several input parameter objects, chief among them > $_GET, $_POST, $_REQUEST, $_SERVER (for the client HTTP headers). All > of them are arrays and legacy code sometimes writes to them. Locking > them as read only objects would cause a major BC break. > > What if instead we had an Object called $_PARAMETERS which holds the > read only copies of this data. In addition, this would be the first > superglobal object, able to perform some filtering of inputs. Basic > idea.. What's the benefit over filter_input()? johannes

« previous php.internals (#57953) next »