Bug #70025 [Opn->Dup]: apache_request_headers() not available
| From: | cmb@php.net | Date: | Fri, 10 Jul 2015 15:49:35 +0000 |
| Subject: | Bug #70025 [Opn->Dup]: apache_request_headers() not available | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194315@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=70025&edit=1
ID: 70025
Updated by: cmb@php.net
Reported by: andreypadiy at gmail dot com
Summary: apache_request_headers() not available
-Status: Open
+Status: Duplicate
Type: Bug
Package: FPM related
Operating System: Centos 6.6
PHP Version: 5.5.26
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Actually, this is a duplicate of bug #62596.
getallheaders() is supposed to be available for the CLI server
(i.e. the built-in webserver, i.e.
php -S), but not generally
when using the CLI sapi.
Previous Comments:
------------------------------------------------------------------------
[2015-07-08 15:16:44] andreypadiy at gmail dot com
Description:
------------
Hi,
I suspect this is related to https://bugs.php.net/bug.php?id=62596
apache_request_headers() and getallheaders() functions are not available when using PHP under
PHP-FPM.
I am getting
PHP Fatal error: Call to undefined function apache_request_headers()
when running under PHP-FPM. Works fine under mod_php.
Same applies to getallheaders().
Also tried with PHP 5.6.10 and PHP 5.4.42 and got the same results.
In addition to this I could not get apache_request_headers() to work from CLI in PHP 5.6.10.
Documentation for apache_request_headers() states
"5.5.7 This function became available in the CLI server. "
Centos 6.6 server 64bit, all PHP versions were tested by installing from IUS repositories
(https://iuscommunity.org/pages/About.html)
Please let me know if you need any more info.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=70025&edit=1