Skip to content

Conversation

@iluuu1994
Copy link
Member

We're executing in the VM, so EG(exception) has to be unset. ZEND_THROW itself already has HANDLE_EXCEPTION() calls when it throws, i.e. when the subject is not a throwable object.

Copy link
Member

@dstogov dstogov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think both zend_exception_save() and zend_exception_restore() may be removed.
This is an artefact from PHP-5.3 that is not necessary since PHP-7.0.

These are leftovers from the pre-PHP-7.0 era.
@iluuu1994 iluuu1994 force-pushed the remove-useless-zend_exception_save-from-ZEND_THROW branch from e138961 to 2b1117a Compare October 28, 2025 23:57
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.

3 participants