Re: [PHP-DOC] Re: [PHP-DEV] superglobals and bc From: Philip Olson (philip <email protected>)
Date: 01/13/02

> > 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 it).

LOL, no comment :)

> > Regarding the extract() idea, please clarify a little more.
>
> I think Rasmus referred to the register_globals deprecation
> question, which is another thing IMHO, that need to be documented.

Okay that makes sense. Was thinking on the lines of a
serialized constant :)

> There are many "user notes" coming up about using:
>
> extract($_REQUEST);
>
> and the like to simluate register_globals. This can
> be a really bad thing sometimes...

Yes it can be. People will continue to do this, we'll need to
keep expanding/referring to security.registerglobals:

  http://www.php.net/manual/en/security.registerglobals.php

Regards,
Philip Olson