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

[Bug] Do not allow to throw PHP exceptions within FFI Zend callbacks #50

Open
lisachenko opened this issue Jul 3, 2021 · 1 comment
Labels
bug Something isn't working php8 php74

Comments

@lisachenko
Copy link
Owner

As throwing is restricted now in PHP, see php/php-src@327e6c9, I should either handle all exceptions from hooks internally with try..catch section silencing them or convert them to user fatal error with trigger_error(...,E_USER_ERROR).

Maybe there is some advanced technique to install custom exception handler for this, but I'm not aware about this.

@lisachenko lisachenko added bug Something isn't working php8 php74 labels Jul 3, 2021
@lisachenko
Copy link
Owner Author

Related to php/php-src#6366

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working php8 php74
Projects
None yet
Development

No branches or pull requests

1 participant