X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_persistent_handle.c;h=720e8e6f6d0daad292f43293159e49cf701250a8;hb=e76f27074a23b1cf83fdd81f97a5c767399225a6;hp=55d53d0059e43f84cf8276ba3a62b70ebb754119;hpb=7dc5de0b79846bfe33ca36a9eeb894ef2ecfdee1;p=m6w6%2Fext-http diff --git a/php_http_persistent_handle.c b/php_http_persistent_handle.c index 55d53d0..720e8e6 100644 --- a/php_http_persistent_handle.c +++ b/php_http_persistent_handle.c @@ -182,6 +182,7 @@ static void php_http_persistent_handles_hash_dtor(void *p) php_http_persistent_handle_provider_t *provider = (php_http_persistent_handle_provider_t *) p; php_http_persistent_handle_list_t **list, *list_tmp; HashPosition pos; + TSRMLS_FETCH(); FOREACH_HASH_VAL(pos, &provider->list.free, list) { /* fix shutdown crash in PHP4 */ @@ -304,7 +305,7 @@ PHP_HTTP_API void *php_http_persistent_handle_accrete(php_http_persistent_handle PHP_HTTP_API void php_http_persistent_handle_release(php_http_persistent_handle_factory_t *a, void *handle TSRMLS_DC) { LOCK(); - php_http_persistent_handle_do_release(a->provider, a->ident.str, a->ident.len, &handle); + php_http_persistent_handle_do_release(a->provider, a->ident.str, a->ident.len, &handle TSRMLS_CC); UNLOCK(); }