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 7df3fd9 commit 039f0feCopy full SHA for 039f0fe
Zend/zend_fibers.c
@@ -218,6 +218,11 @@ static ZEND_NORETURN void zend_fiber_trampoline(boost_context_data data)
218
/* Initialize transfer struct with a copy of passed data. */
219
zend_fiber_transfer transfer = *data.transfer;
220
221
+ /* Ensure that previous fiber will be cleaned up (needed by symmetric coroutines). */
222
+ if (from->status == ZEND_FIBER_STATUS_DEAD) {
223
+ zend_fiber_destroy_context(from);
224
+ }
225
+
226
zend_fiber_context *context = EG(current_fiber_context);
227
228
context->function(&transfer);
0 commit comments