We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf5c984 commit 0ef4582Copy full SHA for 0ef4582
1 file changed
frankenphp.c
@@ -431,10 +431,11 @@ PHP_FUNCTION(frankenphp_handle_request) {
431
432
/*
433
* If an exception occurred, print the message to the client before
434
- * closing the connection
+ * closing the connection and bailout.
435
*/
436
- if (EG(exception)) {
+ if (EG(exception) && !zend_is_unwind_exit(EG(exception)) && !zend_is_graceful_exit(EG(exception))) {
437
zend_exception_error(EG(exception), E_ERROR);
438
+ zend_bailout();
439
}
440
441
frankenphp_worker_request_shutdown();
0 commit comments