Bug #67337 [Com]: apache_request_headers still not available

From: Date: Mon, 26 May 2014 07:36:21 +0000
Subject: Bug #67337 [Com]: apache_request_headers still not available
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185926@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67337&edit=1 ID: 67337 Comment by: arjen at react dot com Reported by: coding at web dot de Summary: apache_request_headers still not available Status: Open Type: Bug Package: FPM related Operating System: Debian stable latest PHP Version: 5.4.28 Block user comment: N Private report: N New Comment: 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... Previous Comments: ------------------------------------------------------------------------ [2014-05-24 13:54:42] coding at web dot de 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. ;-) ------------------------------------------------------------------------ [2014-05-24 13:53:19] coding at web dot de Description: ------------ As stated earlier, apache_request_headers should be available since 5.4 in FastCGI. http://de1.php.net/manual/en/function.apache-request-headers.php 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 ;-) Test script: --------------- <?php print_r(apache_request_headers()); ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67337&edit=1

« previous php.bugs (#185926) next »