On Sun, Jan 13, 2002 at 10:52:32PM +0100, Gabor Hojtsy wrote :
> > > 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?_
> > 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 :)
>
> Yep
On Sun, Jan 13, 2002 at 10:29:00PM +0100, Gabor Hojtsy wrote :
> > > > > 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 defin
> > > > 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 ge
On Sun, Jan 13, 2002 at 08:22:11PM +0100, Gabor Hojtsy wrote :
> > > 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/
>
> session_start();
> if(ini_get('register_globals') AND !isset($session_global_var)){
> $session_global_var = array();
> }
>
> session_register('session_global_var');
>
> if(ini_get('register_globals')){
> $SESSION =& $session_global_var;
> }else{
> $SESSION =& $HTTP_SESSION_VARS['session_gl
> > Now mimicking $_SESSION functionality is another story, eww,
> maybe that's
> > going too far.
>
> This can be done by a register_shutdown_function() who registers
> all the vars in $_SESSION, using session_register. That's all :))
> If I can understand this new feature correctly (I never used
> > Now mimicking $_SESSION functionality is another story, eww, maybe that's
> > going too far.
>
> This can be done by a register_shutdown_function() who registers
> all the vars in $_SESSION, using session_register. That's all :))
> If I can understand this new feature correctly (I never used
> > 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,