go to bug id or search bugs for
As stated earlier, apache_request_headers should be available since 5.4 in FastCGI.
Unfortunately, when i try to call this essential function, i get in return:
[Sat May 24 15:47:10 2014] [error] [client xxx.xxx.xxx.xxx] FastCGI: server "/var/running/php-fpm/fpm.external" stderr: PHP message: PHP Fatal error: Call to undefined function apache_request_headers() in /var/www/arh.php on line 3
So, it would be nice to know if this is missunderstood by me, or 5.4.28 FPM/FastCGI is still not offering this function.
(and if anybody knows a workaround to this, i won't say no ;-)
Add a Patch
Add a Pull Request
And in case if you say:
stupid debian folks missed patches, they don't have 5.4.28
root@debian ~ # php5-fpm -v
PHP 5.4.28-1~dotdeb.1 (fpm-fcgi) (built: May 7 2014 22:25:28)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd.
Already reported at https://bugs.php.net/bug.php?id=62596
Patch available at https://github.com/php/php-src/pull/523
Now find someone who has the power to pull the change...