Bug #76954 [Opn->Csd]: Function apache_response_headers removes last character from header name

From: Date: Mon, 08 Oct 2018 10:34:21 +0000
Subject: Bug #76954 [Opn->Csd]: Function apache_response_headers removes last character from header name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217469@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76954&edit=1 ID: 76954 Updated by: cmb@php.net Reported by: sasa dot todorovic101 at gmail dot com Summary: Function apache_response_headers removes last character from header name -Status: Open +Status: Closed Type: Bug Package: CGI/CLI related Operating System: Linux PHP Version: 7.* Block user comment: N Private report: N New Comment: Automatic comment on behalf of sasa.todorovic@gmx.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=47b89bc5314534e4aab4a8d6cda0da9d079366f6 Log: Fix #76954: apache_response_headers removes last character from header name Previous Comments: ------------------------------------------------------------------------ [2018-10-08 07:39:33] sasa dot todorovic101 at gmail dot com I didn't notice similar issues related to other functions. Even, php_cli_server uses while loop in apache_response_headers() and it returns correct headers. Also, headers_list() returns correct headers and I've created workaround for WPSC - https://github.com/Automattic/wp-super-cache/pull/618 ------------------------------------------------------------------------ [2018-10-04 12:25:00] kalle@php.net Ah my mistake, I just noticed the CGI SAPI (I was first under the impression that it was using the apache2handler SAPI) ------------------------------------------------------------------------ [2018-10-04 12:23:28] kalle@php.net Can you confirm if this also happens for the apache_request_headers() function? ------------------------------------------------------------------------ [2018-10-04 05:10:01] sasa dot todorovic101 at gmail dot com It's related to all PHP 7 versions. ------------------------------------------------------------------------ [2018-10-01 06:36:31] sasa dot todorovic101 at gmail dot com Added PR https://github.com/php/php-src/pull/3566 (I use comment because 'Add a Pull Request' doesn't work). ------------------------------------------------------------------------ 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=76954 -- Edit this bug report at https://bugs.php.net/bug.php?id=76954&edit=1

« previous php.bugs (#217469) next »