Skip to content

Do not expose fiber VM state management #7170

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
Jun 18, 2021
Merged

Do not expose fiber VM state management #7170

merged 1 commit into from
Jun 18, 2021

Conversation

kooldev
Copy link
Contributor

@kooldev kooldev commented Jun 18, 2021

This PR moves struct and functions needed to capture / restore Zend VM state into zend_fibers.c to reduce API exposure. It was never possible to gain access to that state outside of zend_fiber_switch_context() (state is stored on the C stack), hence removing this from the header makes sense.

Extracted from #7163 as suggested by @krakjoe.

@krakjoe krakjoe merged commit d4ead60 into php:master Jun 18, 2021
@kooldev kooldev deleted the fiber-vm-state branch June 18, 2021 06:09
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.

2 participants