Bug #62596 [Com]: getallheaders() missing with PHP-FPM

From: Date: Mon, 08 Jan 2018 22:52:02 +0000
Subject: Bug #62596 [Com]: getallheaders() missing with PHP-FPM
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213431@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:         hobbsogblin at gmail 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:

Popular Linux distributions will begin defaulting to PHP-FPM in the not-so-distant future. Fedora 27
has already done so. It may be wise to get ahead of this issue.


Previous Comments:
------------------------------------------------------------------------
[2017-12-14 11:01:19] chris dot collins at boxuk dot com

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.

------------------------------------------------------------------------
[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+

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


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


Thread (20 messages)

« previous php.bugs (#213431) next »