We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf5c984 commit b4d23ceCopy full SHA for b4d23ce
1 file changed
frankenphp.c
@@ -431,10 +431,12 @@ 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)) &&
437
+ !zend_is_graceful_exit(EG(exception))) {
438
zend_exception_error(EG(exception), E_ERROR);
439
+ zend_bailout();
440
}
441
442
frankenphp_worker_request_shutdown();
0 commit comments