Req #55458 [Fbk->Opn]: variables_order should contain E by default

From: Date: Sat, 10 Jan 2015 13:18:29 +0000
Subject: Req #55458 [Fbk->Opn]: variables_order should contain E by default
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-189857@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=55458&edit=1

 ID:                 55458
 Updated by:         cweiske@php.net
 Reported by:        cweiske@php.net
 Summary:            variables_order should contain E by default
-Status:             Feedback
+Status:             Open
 Type:               Feature/Change Request
 Package:            *Configuration Issues
 PHP Version:        5.3.7
 Block user comment: N
 Private report:     N

 New Comment:

No, I won't fight for bug from four years ago anymore.


Previous Comments:
------------------------------------------------------------------------
[2015-01-10 00:54:00] danack@php.net

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?

------------------------------------------------------------------------
[2011-08-19 09:40:29] cweiske@php.net

Description:
------------
The default php.ini-production[1] 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.


[1] http://svn.php.net/viewvc/php/php-src/trunk/php.ini-production



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=55458&edit=1


Thread (4 messages)

« previous php.bugs (#189857) next »