go to bug id or search bugs for
The default php.ini-production sets variables_order to "GPCS", which misses the "E" for environment variables.
This change was introduced in revision 277363 on Tue Mar 17 19:19:17 2009 by johannes:
> MFH: Replace old php.ini files with the new ones according to
> http://wiki.php.net/rfc/newinis (by Eric Lee Stewart)
The wiki page writes:
> There is a performance penalty paid for the registration of
> these arrays and because ENV is not as commonly used as the
> others, ENV is is not recommended on productions servers.
Since superglobals are only registered when they are used by the code (JIT), there should not really be a performance penalty, and E should be included in the default production setting.
Add a Patch
Add a Pull Request
The change was apparently done because of an approved RFC. Changing to use E again would require considering the security considerations and a new RFC.
Can you open a discussion on the internals list if you think this is still an issue to be discussed?
No, I won't fight for bug from four years ago anymore.
Lets close it off then :)