mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-30 04:29:01 +01:00
Fix refcount upon polling error
libuv will then itself stop the polling and thus refcount needs to be in sync with that
This commit is contained in:
parent
942cb77e5e
commit
e8b3f8b5de
4
php_uv.c
4
php_uv.c
@ -1964,7 +1964,9 @@ static void php_uv_poll_cb(uv_poll_t* handle, int status, int events)
|
||||
TSRMLS_FETCH_FROM_CTX(uv->thread_ctx);
|
||||
|
||||
ZVAL_OBJ(¶ms[0], &uv->std);
|
||||
GC_REFCOUNT(&uv->std)++;
|
||||
if (status == 0) {
|
||||
GC_REFCOUNT(&uv->std)++;
|
||||
}
|
||||
PHP_UV_DEBUG_OBJ_ADD_REFCOUNT(uv_poll_cb, uv);
|
||||
ZVAL_LONG(¶ms[1], status);
|
||||
ZVAL_LONG(¶ms[2], events);
|
||||
|
Loading…
Reference in New Issue
Block a user