[php-src] Issue #13221: Unusual but valid headers in requests are not available to PHP when running via CGI

From: Date: Mon, 22 Jan 2024 15:37:34 +0000
Subject: [php-src] Issue #13221: Unusual but valid headers in requests are not available to PHP when running via CGI
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246316@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/13221 Author: TFLI-DB ### Description The following code: ```php <?php print_r($_SERVER); ``` Requested with: ```sh curl -s -H 'X-Test: 1' -H 'X-%%Test%%: 1' 'http://127.0.0.1/' | grep 'HTTP_' ``` Resulted in this output: ``` [HTTP_X_TEST] => 1 [HTTP_ACCEPT] => */* [HTTP_USER_AGENT] => curl/7.83.1 [HTTP_HOST] => 127.0.0.1 ``` But I expected this output instead: ``` [HTTP_X_TEST] => 1 [HTTP_X_%%TEST%%] => 1 [HTTP_ACCEPT] => */* [HTTP_USER_AGENT] => curl/7.83.1 [HTTP_HOST] => 127.0.0.1 ``` ### PHP Version PHP 8.1.26 ### Operating System Alpine Linux 3.18

« previous php.bugs (#246316) next »