We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edf53f7 commit 4344c20Copy full SHA for 4344c20
scheduler.c
@@ -556,8 +556,7 @@ static bool resolve_deadlocks(void)
556
if (ZEND_COROUTINE_IS_FIBER(coroutine)
557
&& ZEND_COROUTINE_IS_YIELD(coroutine)
558
&& coroutine->extended_data != NULL) {
559
- ZEND_ASYNC_CANCEL(coroutine,
560
- async_new_exception(async_ce_cancellation_exception, "Fiber coroutine cancelled"), true);
+ ZEND_ASYNC_CANCEL(coroutine, zend_create_graceful_exit(), true);
561
562
if (UNEXPECTED(EG(exception) != NULL)) {
563
return true;
0 commit comments