Bug #70025 [NEW]: apache_request_headers() not available
| From: | andreypadiy at gmail dot com | Date: | Wed, 08 Jul 2015 15:16:44 +0000 |
| Subject: | Bug #70025 [NEW]: apache_request_headers() not available | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-194219@lists.php.net to get a copy of this message | ||
From: andreypadiy at gmail dot com
Operating system: Centos 6.6
PHP version: 5.5.26
Package: FPM related
Bug Type: Bug
Bug description:apache_request_headers() not available
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 bug report at https://bugs.php.net/bug.php?id=70025&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70025&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70025&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70025&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=70025&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=70025&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=70025&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=70025&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=70025&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=70025&r=support
Expected behavior: https://bugs.php.net/fix.php?id=70025&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=70025&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=70025&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=70025&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70025&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=70025&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=70025&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=70025&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=70025&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=70025&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=70025&r=mysqlcfg