@@ -188,7 +188,7 @@ typedef zend_coroutine_t * (*zend_async_spawn_t)(zend_async_scope_t *scope, zend
188
188
typedef void (* zend_async_suspend_t )(bool from_main );
189
189
typedef void (* zend_async_enqueue_coroutine_t )(zend_coroutine_t * coroutine );
190
190
typedef void (* zend_async_resume_t )(zend_coroutine_t * coroutine , zend_object * error , const bool transfer_error );
191
- typedef void (* zend_async_cancel_t )(zend_coroutine_t * coroutine , zend_object * error , const bool transfer_error , const bool is_safely );
191
+ typedef void (* zend_async_cancel_t )(zend_coroutine_t * coroutine , zend_object * error , bool transfer_error , const bool is_safely );
192
192
typedef void (* zend_async_shutdown_t )(void );
193
193
typedef zend_array * (* zend_async_get_coroutines_t )(void );
194
194
typedef void (* zend_async_add_microtask_t )(zend_async_microtask_t * microtask );
@@ -1124,13 +1124,15 @@ ZEND_API zend_async_waker_t *zend_async_waker_new(zend_coroutine_t *coroutine);
1124
1124
ZEND_API zend_async_waker_t * zend_async_waker_new_with_timeout (
1125
1125
zend_coroutine_t * coroutine , const zend_ulong timeout , zend_async_event_t * cancellation
1126
1126
);
1127
- ZEND_API bool zend_async_waker_apply_error (zend_async_waker_t * waker , zend_object * error , bool override , bool for_cancellation );
1127
+ ZEND_API bool zend_async_waker_apply_error (
1128
+ zend_async_waker_t * waker , zend_object * error , bool transfer_error , bool override , bool for_cancellation
1129
+ );
1128
1130
ZEND_API void zend_async_waker_destroy (zend_coroutine_t * coroutine );
1129
1131
ZEND_API void zend_async_waker_add_triggered_event (zend_coroutine_t * coroutine , zend_async_event_t * event );
1130
1132
1131
- #define ZEND_ASYNC_WAKER_APPLY_ERROR (waker , error ) zend_async_waker_apply_error((waker), (error), true, false)
1132
- #define ZEND_ASYNC_WAKER_APPEND_ERROR (waker , error ) zend_async_waker_apply_error((waker), (error), false, false)
1133
- #define ZEND_ASYNC_WAKER_APPLY_CANCELLATION (waker , error ) zend_async_waker_apply_error((waker), (error), true, true)
1133
+ #define ZEND_ASYNC_WAKER_APPLY_ERROR (waker , error , transfer ) zend_async_waker_apply_error((waker), (error), (transfer ), true, false)
1134
+ #define ZEND_ASYNC_WAKER_APPEND_ERROR (waker , error , transfer ) zend_async_waker_apply_error((waker), (error), (transfer ), false, false)
1135
+ #define ZEND_ASYNC_WAKER_APPLY_CANCELLATION (waker , error , transfer ) zend_async_waker_apply_error((waker), (error), (transfer ), true, true)
1134
1136
1135
1137
ZEND_API void zend_async_resume_when (
1136
1138
zend_coroutine_t * coroutine ,
0 commit comments