Skip to content

Commit e92dacc

Browse files
committed
php#53: + ZEND_ASYNC_WAKER_CLEAN_EVENTS
1 parent 9169b76 commit e92dacc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Zend/zend_async_API.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
#include "zend_fibers.h"
2020
#include "zend_globals.h"
2121

22-
#define ZEND_ASYNC_API "TrueAsync API v0.5.0"
22+
#define ZEND_ASYNC_API "TrueAsync API v0.6.0"
2323
#define ZEND_ASYNC_API_VERSION_MAJOR 0
24-
#define ZEND_ASYNC_API_VERSION_MINOR 5
24+
#define ZEND_ASYNC_API_VERSION_MINOR 6
2525
#define ZEND_ASYNC_API_VERSION_PATCH 0
2626

2727
#define ZEND_ASYNC_API_VERSION_NUMBER \
@@ -985,6 +985,7 @@ struct _zend_async_waker_s {
985985
};
986986

987987
#define ZEND_ASYNC_WAKER_WAITING(waker) ((waker)->status < ZEND_ASYNC_WAKER_RESULT)
988+
#define ZEND_ASYNC_WAKER_CLEAN_EVENTS(waker) (zend_hash_clean(&waker->events))
988989

989990
/**
990991
* Coroutine destructor. Called when the coroutine needs to clean up all its data.

0 commit comments

Comments
 (0)