Bug #75982 [Opn->Csd]: $_SERVER mostly empty with default variables_order GPCS on FastCGI/CGI
| From: | dmitry@php.net | Date: | Fri, 23 Mar 2018 12:17:40 +0000 |
| Subject: | Bug #75982 [Opn->Csd]: $_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-214453@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
Updated by: dmitry@php.net
Reported by: mattficken@php.net
Summary: $_SERVER mostly empty with default variables_order
GPCS on FastCGI/CGI
-Status: Open
+Status: Closed
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:
Automatic comment on behalf of dmitry@zend.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=fe6f092e5e60eb165ed4b6db69416ffcdcbd54b7
Log: Fixed bug #75982 ($_SERVER mostly empty with default variables_order GPCS on FastCGI/CGI)
Previous Comments:
------------------------------------------------------------------------
[2018-03-13 01:27:55] mattficken@php.net
Ping?
------------------------------------------------------------------------
[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