Re: Re: Why does $_REQUEST exist?

From: Date: Fri, 15 May 2009 06:09:52 +0000
Subject: Re: Re: Why does $_REQUEST exist?
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-43970@lists.php.net to get a copy of this message
I think this strikes a good balance between backward compatibility... I would hope though the code for it is very simple, to not add overhead to PHP. Basically in PHP the pseudocode equivalent would be if(ini_get('reigster_request') == true) { $_REQUEST = array_merge($_GET, $_POST, $_COOKIE, $_SESSION); } On Thu, May 14, 2009 at 11:01 PM, Patrick ALLAERT <patrick.allaert@gmail.com> wrote: > Hello, > > I think Michael's vision is right in this area, maybe bc could just be > achieved having a "register_request" INI parameter that is set by > default to OFF that people just have to enable if they rely on > $_REQUEST. > We could manage it the same way register_globals is: > "This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 6.0.0" > > Patrick >

« previous php.internals (#43970) next »