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

From: Date: Tue, 21 Jul 2015 21:55:00 +0000
Subject: Bug #62596 [Asn]: getallheaders() missing with PHP-FPM
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194599@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 Updated by: yohgaki@php.net Reported by: phofstetter at sensational dot ch Summary: getallheaders() missing with PHP-FPM Status: Assigned Type: Bug Package: FPM related Operating System: MacOS X, Linux PHP Version: 5.4.4 Assigned To: fmargaine Block user comment: N Private report: N New Comment: I suggested generic name for the function when the change was made. e.g. sapi_header_get_all(), sapi_header_send(), etc. It would be time to cleanup all function naming mess. https://wiki.php.net/rfc/consistent_function_names Previous Comments: ------------------------------------------------------------------------ [2015-07-21 21:46:24] darck at vossey dot net *3 years old I hope it's not going to be 4 :) ------------------------------------------------------------------------ [2015-07-21 21:25:33] php at vossey dot net This ommission is now 4 years old... I know the PHP team hate distribution patches, but Debian has integrated a patch that fix this missing function for FPM, at least for 5.6 (0046-getallheaders-for-php-fpm-62596.patch). Why not take it? ------------------------------------------------------------------------ [2015-07-10 15:49:35] cmb@php.net Related To: Bug #70025 ------------------------------------------------------------------------ [2014-06-21 19:54:15] zaunere at gmail dot com The documentation is misleading and regardless this type of functionality should be transparent across all SAPIs (where applicable) - especially one as relevant as FPM. Thank you! ------------------------------------------------------------------------ [2014-04-29 12:39:38] simon at ikanobori dot jp Running PHP-FPM, 5.4.4 this is present. The documentation on http://www.php.net/manual/en/function.getallheaders.php mentions that this function became available from 5.4.0 for FastCGI and my PHP-FPM tells me its API is FPM/FastCGI. A solution is to either update the documentation with the workarounds mentioned in the comments or to more clearly define that this is not available for PHP-FPM. Or adding it to PHP-FPM. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=62596 -- Edit this bug report at https://bugs.php.net/bug.php?id=62596&edit=1

« previous php.bugs (#194599) next »