fix: catches panic on invalid status code by AlliBalliBaba · Pull Request #1920 · php/frankenphp

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@AlliBalliBaba

Copy link Copy Markdown

Contributor

@AlliBalliBaba AlliBalliBaba commented

Oct 13, 2025

edited

Loading

Fixes #1907 by avoiding this panic.

I actually like that go panics here, but there might be edge cases where PHP legitimately sends a wrong status code.

Copy link Copy Markdown

Member

@alexandre-daubois alexandre-daubois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

@alexandre-daubois alexandre-daubois merged commit 45823c5 into main

Oct 16, 2025

24 checks passed

@alexandre-daubois alexandre-daubois deleted the fix/catch-invalid-response-codes branch

October 16, 2025 09:35

@alexandre-daubois

Copy link Copy Markdown

Member

Thanks Alexander!

AlliBalliBaba reacted with thumbs up emoji

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

Reviewers

@dunglas dunglas dunglas approved these changes

@alexandre-daubois alexandre-daubois alexandre-daubois approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Catching exception resulting in go panic

3 participants

@AlliBalliBaba @alexandre-daubois @dunglas