Re: Re: Adieu register_globals
| From: | Johannes Schlueter | Date: | Tue, 07 Mar 2006 00:16:57 +0000 |
| Subject: | Re: Re: Adieu register_globals | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22154@lists.php.net to get a copy of this message | ||
Hi,
On Tuesday 07 March 2006 01:10, Andrew Yochum wrote:
> On Tue, Mar 07, 2006 at 01:38:34AM +0200, Zeev Suraski wrote:
> > A part of the decision was to supply the few lines of code necessary
> > to emulate register_globals in userspace. Volunteers? :)
>
> FWIW, I've used this successfully when tieing two systems with opposing
> register_globals requirements:
> extract($_GET,EXTR_REFS);
> extract($_POST,EXTR_REFS);
> extract($_COOKIES,EXTR_REFS);
>
> Gets the job done simply.
Even simpler: http://php.net/import-request-variables
johannes