-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
set_exception_handler must catch exceptions also when in shutdown #10695
Comments
I don't think this makes any sense whatsoever. It like you are expecting: try {
function_1_that_throw();
function_2_that_throw();
} catch (\Throwable $e) {
echo "Caught exception";
} To execute both But wondering what other people think about this @iluuu1994 @arnaud-lb @kocsismate . |
@Girgias this issue is about |
I still don't think this is particularly sensible, we are re-entering the VM, which may be in an unstable state. But I'll let other people judge as I don't deal with the shutdown part that much. |
Fixes phpGH-10695 Closes GH-110905
Fixes phpGH-10695 Closes GH-110905
Fixes phpGH-10695 Closes GH-110905
Fixes phpGH-10695 Closes GH-110905
Fixes phpGH-10695 Closes GH-110905
Fixes phpGH-10695 Closes GH-110905
Description
The following code:
click to expand
https://3v4l.org/U5sF8
Resulted in this output:
But I expected this output instead:
restore_error_handler
is working in shutdown,set_exception_handler
must work tooPHP Version
any
Operating System
any
The text was updated successfully, but these errors were encountered: