[go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FPM does not reset fastcgi.error_header #9981

Closed
bukka opened this issue Nov 21, 2022 · 0 comments
Closed

FPM does not reset fastcgi.error_header #9981

bukka opened this issue Nov 21, 2022 · 0 comments

Comments

@bukka
Copy link
Member
bukka commented Nov 21, 2022

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
Projects
None yet
Development

No branches or pull requests

2 participants
@bukka and others