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 6cc5d31 commit 5335badCopy full SHA for 5335bad
Zend/zend_fibers.c
@@ -541,7 +541,6 @@ static zend_always_inline zend_fiber_transfer zend_fiber_switch_to(
541
542
if (from) {
543
from->execute_data = EG(current_execute_data);
544
- from->stack_bottom->prev_execute_data = NULL;
545
}
546
547
zend_fiber_switch_context(&transfer);
@@ -746,6 +745,8 @@ ZEND_METHOD(Fiber, suspend)
746
745
747
ZEND_ASSERT(fiber->context.status == ZEND_FIBER_STATUS_RUNNING || fiber->context.status == ZEND_FIBER_STATUS_SUSPENDED);
748
+ fiber->stack_bottom->prev_execute_data = NULL;
749
+
750
zend_fiber_transfer transfer = zend_fiber_suspend(fiber, value);
751
752
zend_fiber_delegate_transfer_result(&transfer, INTERNAL_FUNCTION_PARAM_PASSTHRU);
0 commit comments