Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions frankenphp.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,12 @@ PHP_FUNCTION(frankenphp_handle_request) {

/*
* If an exception occurred, print the message to the client before
* closing the connection
* closing the connection and bailout.
*/
if (EG(exception)) {
if (EG(exception) && !zend_is_unwind_exit(EG(exception)) &&
!zend_is_graceful_exit(EG(exception))) {
zend_exception_error(EG(exception), E_ERROR);
zend_bailout();
}

frankenphp_worker_request_shutdown();
Expand Down
Loading