Date: 01/13/02
- Next message: Gabor Hojtsy: "Re: [PHP-DOC] cvs: phpdoc /en bookinfo.xml"
- Previous message: Egon Schmid: "Re: [PHP-DOC] manual build issues"
- In reply to: Rasmus Lerdorf: "[PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Next in thread: Gabor Hojtsy: "Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Reply: Gabor Hojtsy: "Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
- Next message: Gabor Hojtsy: "Re: [PHP-DOC] cvs: phpdoc /en bookinfo.xml"
- Previous message: Egon Schmid: "Re: [PHP-DOC] manual build issues"
- In reply to: Rasmus Lerdorf: "[PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Next in thread: Gabor Hojtsy: "Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Reply: Gabor Hojtsy: "Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

