Skip to content

fix: Do not try to set HTTP response code on already closed connection#47971

Merged
come-nc merged 1 commit into
masterfrom
fix/do-not-try-to-change-response-code-too-late
Sep 14, 2024
Merged

fix: Do not try to set HTTP response code on already closed connection#47971
come-nc merged 1 commit into
masterfrom
fix/do-not-try-to-change-response-code-too-late

Conversation

@come-nc

@come-nc come-nc commented Sep 14, 2024

Copy link
Copy Markdown
Contributor

Summary

This avoids a PHP warning in the logs about trying to set the response
code while the output already started. It’s useless to try to print an
error page anyway in this situation because the connection was closed
already.

Checklist

This avoids a PHP warning in the logs about trying to set the response
 code while the output already started. It’s useless to try to print an
 error page anyway in this situation because the connection was closed
 already.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc added the 3. to review Waiting for reviews label Sep 14, 2024
@come-nc come-nc added this to the Nextcloud 31 milestone Sep 14, 2024
@come-nc come-nc self-assigned this Sep 14, 2024
@come-nc

come-nc commented Sep 14, 2024

Copy link
Copy Markdown
Contributor Author

/backport to stable30

@come-nc

come-nc commented Sep 14, 2024

Copy link
Copy Markdown
Contributor Author

/backport to stable29

@come-nc

come-nc commented Sep 14, 2024

Copy link
Copy Markdown
Contributor Author

/backport to stable28

@come-nc come-nc requested review from a team, Altahrim, artonge, icewind1991, joshtrichards and nfebe and removed request for a team September 14, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: cannot set response code - headers already sent (PHP 8.3)

5 participants