|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-06-27 12:01 UTC] sjon@php.net
-Status: Open
+Status: Verified
[2019-06-27 12:01 UTC] sjon@php.net
[2019-06-27 12:05 UTC] sjon@php.net
-Summary: php-fpm status parsing
+Summary: php-fpm doesn't prevent bogus Status-Line header to
be send
[2023-05-25 11:51 UTC] loreydsyuyu322 at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
Description: ------------ PHP-FPM will not validate that the HTTP status line set in PHP is correct as described in rfc2616. Thus it will forward an incorrect CGI "Status:" response (which doesn't conform to rfc3875). Test script: --------------- Set this incorrect header from PHP: header( 'HTTP/1.1 Service Unavailable', true, 503 ); Then in sapi/fpm/fpm/fpm_main.c we have len = slprintf(buf, sizeof(buf), "Status:%s\r\n", s); which results in "Status: Service Unavailable" sent to the CGI socket.