Edit report at https://bugs.php.net/bug.php?id=62596&edit=1
ID: 62596
Comment by: yinchuan dot blue 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:
PHP 5.4.9 with php-fpm having this issuse.
A fix would be much appreciated.
Previous Comments:
------------------------------------------------------------------------
[2013-09-16 12:54:52] nospam dot a5ef at gribouille dot eu
I'm having the same issue.
getallheaders() works fine using PHP-CGI (5.5.3), but compiling and using a 5.5.3
PHP-FPM will raise a Fatal error: Call to undefined function getallheaders()
A fix would be much appreciated.
------------------------------------------------------------------------
[2012-07-18 12:09:34] phofstetter at sensational dot ch
Description:
------------
getallheaders() is supposed to be available outside of the Apache SAPI since PHP
5.4.0.
This is true for php-cgi for example, but it is not true for php-fpm where
getallheaders() still causes
Fatal error: Call to undefined function getallheaders()
Test script:
---------------
<?php
var_dump(getallheaders());
Expected result:
----------------
I expect to see the query headers (I need getallheaders() to get the OAuth bearer
token from the Authorization header which unfortunately doesn't survive the move
into $_SERVER)
Actual result:
--------------
Fatal error: Call to undefined function getallheaders()
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62596&edit=1