Skip to content

[HttpClient] return early if handle has been cleaned up before #61031

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

Merged
merged 1 commit into from
Jul 4, 2025

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jul 3, 2025

Q A
Branch? 7.2
Bug fix? yes
New feature? no
Deprecations? no
Issues
License MIT

When a request has been cleaned up by the PHP process there still can be an event that will later on try to generate the response. Previously this lead to a warning like Undefined array key "bg".

spotted in #58370 where this makes the test fail with PHPUnit 11.5: https://github.com/symfony/symfony/actions/runs/16051022174/job/45293445147#step:9:3827

@fabpot
Copy link
Member

fabpot commented Jul 4, 2025

Thank you @xabbuh.

@fabpot fabpot merged commit 60623b6 into symfony:7.2 Jul 4, 2025
10 of 11 checks passed
@xabbuh xabbuh deleted the amphp-closed-handle-access branch July 4, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants