Bug #75982 [Com]: $_SERVER mostly empty with default variables_order GPCS on FastCGI/CGI
| From: | mattficken@php.net | Date: | Tue, 13 Mar 2018 01:27:55 +0000 |
| Subject: | Bug #75982 [Com]: $_SERVER mostly empty with default variables_order GPCS on FastCGI/CGI | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-214317@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=75982&edit=1
ID: 75982
Comment by: mattficken@php.net
Reported by: mattficken@php.net
Summary: $_SERVER mostly empty with default variables_order
GPCS on FastCGI/CGI
Status: Open
Type: Bug
Package: *Configuration Issues
Operating System: Windows, any OS?
PHP Version: master-Git-2018-02-20 (snap)
Block user comment: N
Private report: N
New Comment:
Ping?
Previous Comments:
------------------------------------------------------------------------
[2018-02-20 09:33:29] mike@php.net
Maybe related to bdf77f02f637bc0efbb55a800be1860279cc5b3e
------------------------------------------------------------------------
[2018-02-20 05:52:26] mattficken@php.net
Description:
------------
When variables_order=GPCS(default), $_SERVER is only populated with PHP_SELF, REQUEST_TIME_FLOAT and
REQUEST_TIME (PATH_TRANSLATED, etc... are missing).
MediaWiki is broken on master. MediaWiki depends on $_SERVER['PATH_TRANSLATED']. Other
apps depend on this too. Drupal and Wordpress are not affected.
If variables_order is set to EGPCS then $_SERVER is populated as normal.
On 7.2, 7.1, 7.0, $_SERVER is populated when variables_order=GPCS or EGPCS, so $_SERVER is populated
by default.
This this an intentional behavior change? Or a bug?
I am still investigating, but at this time I believe this is caused by this: http://git.php.net/?p=php-src.git;a=commitdiff;h=bdf77f02f637bc0efbb55a800be1860279cc5b3e
If this is an intentional behavior change, then http://php.net/manual/en/ini.core.php#ini.variables-order
should be updated now or when PHP 7.3 is released (also should tell MediaWiki).
Test script:
---------------
Check phpinfo(); on web server.
Or var_dump($_SERVER) on web server.
This isn't a problem on CLI sapi.
php -i includes $_SERVER
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=75982&edit=1