-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Disallow calls to abstract __call()
/ __callStatic()
#17719
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
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.
This looks good to me!
zend_string_release_ex(fbc->common.function_name, 0); | ||
zend_free_trampoline(fbc); |
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.
Unrelated, but I think we need this below in the ZEND_ACC_TRAIT case when EG(exception) is set.
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.
Indeed:
php: php-src/Zend/zend_execute_API.c:489: void shutdown_executor(void): Assertion `(executor_globals.trampoline).common.function_name == ((void*)0) || (compiler_globals.unclean_shutdown)' failed.
I'll make a separate PR for that.
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.
* PHP-8.3: Disallow calls to abstract `__call()` / `__callStatic()` (#17719)
* PHP-8.4: Disallow calls to abstract `__call()` / `__callStatic()` (#17719)
Fixes #17718