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 d5a7814 commit 2356d96Copy full SHA for 2356d96
Zend/zend_fibers.c
@@ -1316,11 +1316,7 @@ static void zend_fiber_object_destroy(zend_object *object)
1316
return;
1317
}
1318
1319
- zend_object *exception = zend_async_new_exception(
1320
- ZEND_ASYNC_EXCEPTION_CANCELLATION, "Fiber has been destroyed"
1321
- );
1322
-
1323
- ZEND_ASYNC_CANCEL(coroutine, exception, true);
+ ZEND_ASYNC_CANCEL(coroutine, zend_create_graceful_exit(), true);
1324
1325
//
1326
// A Fiber shares ownership of a coroutine with the Scheduler. This is important.
0 commit comments