Re: superglobals and bc
| From: | Philip Olson | Date: | Sun, 13 Jan 2002 18:20:15 +0000 |
| Subject: | Re: superglobals and bc | ||
| References: | 1 | Groups: | php.dev php.doc |
| Request: | Send a blank email to php-dev+get-76891@lists.php.net to get a copy of this message | ||
> The only real thing I think you can document on this is that you can't use
> superglobals and expect your scripts to work on older versions of PHP.
true. We can refer to a faq, one with a hack or two.
> I mean, you could check php_version() and stick in some extract() calls
> for older versions wherever you use the superglobals, but that seems
> rather ugly.
Some really want it, let's define the most efficient/least ugly types of
hacks :) For example with get, checking phpversion, then appropriatly
defining $_GET = &$HTTP_GET_VARS. And in a function, do: global $_GET. Now
mimicking $_SESSION functionality is another story, eww, maybe that's
going too far.
Regarding the extract() idea, please clarify a little more.
Regards,
Philip Olson