Skip to content

Commit bb6fab0

Browse files
committed
#6: * fix async_coroutine_object_gc
1 parent 5eee8c5 commit bb6fab0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coroutine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ zend_coroutine_t *async_new_coroutine(zend_async_scope_t *scope)
11851185

11861186
static HashTable *async_coroutine_object_gc(zend_object *object, zval **table, int *num)
11871187
{
1188-
async_coroutine_t *coroutine = (async_coroutine_t *)object;
1188+
async_coroutine_t *coroutine = (async_coroutine_t *)ZEND_ASYNC_OBJECT_TO_EVENT(object);
11891189
zend_get_gc_buffer *buf = zend_get_gc_buffer_create();
11901190

11911191
/* Always add basic ZVALs from coroutine structure */

0 commit comments

Comments
 (0)