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

From: Date: Mon, 16 Sep 2013 12:54:52 +0000
Subject: Bug #62596 [Com]: getallheaders() missing with PHP-FPM
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-181600@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: nospam dot a5ef at gribouille dot eu 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: 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. Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#181600) next »