Date: 01/13/02
- Next message: Markus Fischer: "Re: [PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Previous message: Derick Rethans: "[PHP-DOC] cvs: phpdoc /en/functions strings.xml"
- In reply to: Markus Fischer: "[PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Next in thread: Markus Fischer: "Re: [PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Reply: Markus Fischer: "Re: [PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> > > > 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,
> >
> > I think it is better to check for the existense of these vars,
> > not the version!
>
> But you have to be careful here. If variables get
> automatically populated in the global namespace you can too
> easily fake them (I'm not saying you do it that way, I just
> want to mention it so the one who writes something about this
> keeps that in mind). At least, I think so.
The question is to check for $_GET [isset($_GET)] or phpversion()
> 4.1.0 [version_compare() is the function for that thing :)].
Well, you are right, that if we are < 4.1.0, you can do:
fake.php?_GET[a]=b&_GET[c]=d
so my idea may not be that good :)
Goba
- Next message: Markus Fischer: "Re: [PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Previous message: Derick Rethans: "[PHP-DOC] cvs: phpdoc /en/functions strings.xml"
- In reply to: Markus Fischer: "[PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Next in thread: Markus Fischer: "Re: [PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Reply: Markus Fischer: "Re: [PHP-DOC] Re: [PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

