Nothing Special   »   [go: up one dir, main page]

Skip to content
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

Implement delyed early binding for classes without parents #11227

Closed
wants to merge 2 commits into from

Conversation

iluuu1994
Copy link
Member
@iluuu1994 iluuu1994 commented May 10, 2023

Fixes GH-8846

This depends on GH-11226 which should be merged first.

If we bind the class to the runtime slot even if we're not the ones who have
performed early binding we'll miss the redeclaration error in the
ZEND_DECLARE_CLASS_DELAYED handler.
@iluuu1994
Copy link
Member Author

Hmm, actually I think this may be much simpler. Since early-bind is only performed for classes without interfaces and traits (i.e. classes that don't need inheritance apart from parent) we may probably just add it to the class table directly. I'll try that first, otherwise I'll reopen this PR.

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.

Opcache corruption
1 participant