Bug #62596 [Com]: getallheaders() missing with PHP-FPM
| From: | chris dot collins at boxuk dot com | Date: | Thu, 14 Dec 2017 11:01:26 +0000 |
| Subject: | Bug #62596 [Com]: getallheaders() missing with PHP-FPM | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-213093@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62596&edit=1
ID: 62596
Comment by: chris dot collins at boxuk dot com
Reported by: phofstetter at sensational dot ch
Summary: getallheaders() missing with PHP-FPM
Status: Open
Type: Bug
Package: FPM related
Operating System: MacOS X, Linux
PHP Version: 5.4.4
Block user comment: N
Private report: N
New Comment:
It would be good if this could be resolved. It appears it has got close to being fixed in 5.5 and
5.6, but both times PRs have been closed due to those versions lapsing into "security fix
only" mode. It's still present in PHP 7.
The previously mentioned workaround to use a polyfill (ralouphie/getallheaders) works: at the very
least http://php.net/manual/en/function.getallheaders.php
should be updated to indicate this method is not always available.
Previous Comments:
------------------------------------------------------------------------
[2017-10-24 08:20:32] nospam dot ty5l at gribouille dot eu
Hello, I also commented here in 2013 for this bug to be fixed.
Apparently a person has been assigned to this bug in 2014.
Today 2017, it has been "un"assigned.
Does this means this bug will never get fixed ?
------------------------------------------------------------------------
[2017-07-28 09:59:17] jso at json dot com
so much years . why not fix this bug?
------------------------------------------------------------------------
[2016-10-27 21:42:38] yohgaki@php.net
Let's clean up function name mess now and add it (them).
Need RFC for this. If nobody cares, I may handle this. Assign this bug to me.
------------------------------------------------------------------------
[2016-10-25 22:31:37] fredrik at neam dot se
It seems that https://github.com/php/php-src/pull/910 is not
even accepted for 7.1 even.
In the meantime, @ralouphie has a polyfill that can be installed via composer: https://github.com/ralouphie/getallheaders
making the function available in all scripts that loads the composer autoloader.
PS I tried adding https://github.com/php/php-src/pull/910 to this
bug report but I could only choose PRs with ids from around 1800+
------------------------------------------------------------------------
[2016-06-16 16:44:29] alex at tresorg dot com
I hope its not going to be 5 years
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=62596
--
Edit this bug report at https://bugs.php.net/bug.php?id=62596&edit=1