mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
Prepare v0.2.0
This commit is contained in:
parent
92bb903b1b
commit
c38fbc92b3
13
package.xml
13
package.xml
@ -10,11 +10,11 @@
|
||||
<email>bobwei9@hotmail.com</email>
|
||||
<active>yes</active>
|
||||
</lead>
|
||||
<date>2017-03-06</date>
|
||||
<time>13:00:00</time>
|
||||
<date>2017-05-07</date>
|
||||
<time>21:00:00</time>
|
||||
<version>
|
||||
<release>0.1.2</release>
|
||||
<api>0.1.2</api>
|
||||
<release>0.2.0</release>
|
||||
<api>0.2.0</api>
|
||||
</version>
|
||||
<stability>
|
||||
<release>beta</release>
|
||||
@ -22,9 +22,8 @@
|
||||
</stability>
|
||||
<license uri="http://www.php.net/license">PHP License</license>
|
||||
<notes>
|
||||
- Fix uv_listen()
|
||||
- Fix a few memory leaks
|
||||
- Fix loop cleanup
|
||||
- Move from resource handles to object handles
|
||||
- Various smaller fixes
|
||||
</notes>
|
||||
<contents>
|
||||
<dir name="/">
|
||||
|
7
php_uv.c
7
php_uv.c
@ -2039,16 +2039,17 @@ static void php_uv_close_cb(uv_handle_t *handle)
|
||||
php_uv_t *uv = (php_uv_t *) handle->data;
|
||||
TSRMLS_FETCH_FROM_CTX(uv->thread_ctx);
|
||||
|
||||
if (!(GC_FLAGS(&uv->std) & IS_OBJ_DESTRUCTOR_CALLED)) {
|
||||
if (!PHP_UV_IS_DTORED(uv)) {
|
||||
ZVAL_OBJ(¶ms[0], (zend_object *) uv);
|
||||
|
||||
php_uv_do_callback2(&retval, uv, params, 1, PHP_UV_CLOSE_CB TSRMLS_CC);
|
||||
zval_ptr_dtor(&retval);
|
||||
|
||||
/* manually clean the uv handle to avoid default dtor handling */
|
||||
clean_uv_handle(uv);
|
||||
}
|
||||
|
||||
PHP_UV_DEBUG_OBJ_DEL_REFCOUNT(uv_close_cb, uv);
|
||||
/* manually clean the uv handle to avoid default dtor handling */
|
||||
clean_uv_handle(uv);
|
||||
OBJ_RELEASE(&uv->std);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user