Re: Changes to SuperGlobals for PHP 8 (was: something about session_start...)
| From: | Stanislav Malyshev | Date: | Sat, 29 Jul 2017 20:22:30 +0000 |
| Subject: | Re: Changes to SuperGlobals for PHP 8 (was: something about session_start...) | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100114@lists.php.net to get a copy of this message | ||
Hi!
> On a slight tangent, I consider $_SERVER to be a broken pile of
> "we'll just shove this in here and hope for the best", and I will
> oppose any attempt to convert it into an object which doesn't
> reorganize its keys to be sane, documented, and as cross-platform as
> the SAPI layer can make it. :P
You cannot make it cross-platform, as it is specifically made for
environment consisting the current platform, making it cross-platform
would just force you to create yet another one which contains the bits
that didn't fit into "cross-platform".
As for sane/documented, documenting every quirk of every system is a
herculean task, and we don't have too much control about how (in)sane
each OS environment could get.
--
Stas Malyshev
smalyshev@gmail.com