Skip to content

FPM does not reset fastcgi.error_header #9981

Closed

Description

@bukka

Description

If fastcgi.error_header ini is set to for example "HTTP/1.1 500 Internal Server Error" and there is an error in one of the requests, the status code gets changed to the supplied value as expected. However this value is then kept for subsequent requests in the same child. That means that if the subsequent request is successful (it can be a completely different script as well), it still uses 500 status which is of course not what would users expect.

PHP Version

Tested on PHP 8.1 but likely present in PHP 7 and PHP 5 as well.

Operating System

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions