We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b22db46 commit 3dccf0aCopy full SHA for 3dccf0a
1 file changed
coroutine.c
@@ -415,6 +415,7 @@ ZEND_STACK_ALIGNED void async_coroutine_execute(async_coroutine_t *coroutine)
415
}
416
zend_catch
417
{
418
+ is_bailout = true;
419
should_start_graceful_shutdown = true;
420
421
zend_end_try();
@@ -426,7 +427,7 @@ ZEND_STACK_ALIGNED void async_coroutine_execute(async_coroutine_t *coroutine)
426
427
ZEND_ASYNC_CURRENT_COROUTINE = NULL;
428
429
- return;
430
+ goto exit;
431
432
433
if (UNEXPECTED(waker->status == ZEND_ASYNC_WAKER_WAITING)) {
@@ -492,6 +493,8 @@ ZEND_STACK_ALIGNED void async_coroutine_execute(async_coroutine_t *coroutine)
492
493
494
495
496
+exit:
497
+
498
if (UNEXPECTED(should_start_graceful_shutdown)) {
499
zend_try
500
0 commit comments