clear old callback

This commit is contained in:
Shuhei Tanuma 2012-07-12 10:28:17 +09:00
parent f2b56c8b76
commit bfd6342971

View File

@ -266,6 +266,10 @@ static inline void php_uv_cb_init(php_uv_cb_t **result, php_uv_t *uv, zend_fcall
memcpy(&cb->fci, fci, sizeof(zend_fcall_info));
memcpy(&cb->fcc, fcc, sizeof(zend_fcall_info_cache));
if (uv->callback[type] != NULL) {
efree(uv->callback[type]);
}
if (ZEND_FCI_INITIALIZED(*fci)) {
Z_ADDREF_P(cb->fci.function_name);
#if PHP_VERSION_ID >= 50300