-
Notifications
You must be signed in to change notification settings - Fork 7.8k
Fix Segfault when using ReflectionFiber #10439 #10478
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
Conversation
This LGTM. Apologies that I didn't catch this when writing the reflection API for fibers. I copied the Generator API for these methods, but Can this be merged into 8.1? It's a BC break for the API, but the prior behavior here was to crash, so seems a reasonable trade-off? /cc @ramsey |
I'm okay with this change for 8.1. @patrickallaert and @krakjoe, disagree or agree? |
Ping? :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation looks good to me.
Squashed and rebased this on PHP-8.1, should be good to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implementation looks good to me! Would be nice if there was a test for the parent behavior. I think you could test this with Nevermind, this is obviously already tested.array_map
and ["Fiber", "suspend"]
.
No description provided.