From 26de4e2a0c7e422753dfd699813282a2819e8b26 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 27 Nov 2009 09:12:17 +0000 Subject: [PATCH 1/1] - PECL #16803, fix NTS build with vc6 --- http_request_pool_api.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/http_request_pool_api.c b/http_request_pool_api.c index c9ca536..4a31985 100644 --- a/http_request_pool_api.c +++ b/http_request_pool_api.c @@ -109,7 +109,9 @@ PHP_HTTP_API http_request_pool *_http_request_pool_init(http_request_pool *pool /* {{{ STATUS http_request_pool_attach(http_request_pool *, zval *) */ PHP_HTTP_API STATUS _http_request_pool_attach(http_request_pool *pool, zval *request) { +#ifdef ZTS TSRMLS_FETCH_FROM_CTX(pool->tsrm_ls); +#endif getObjectEx(http_request_object, req, request); #if HTTP_DEBUG_REQPOOLS @@ -146,7 +148,9 @@ PHP_HTTP_API STATUS _http_request_pool_attach(http_request_pool *pool, zval *req PHP_HTTP_API STATUS _http_request_pool_detach(http_request_pool *pool, zval *request) { CURLMcode code; +#ifdef ZTS TSRMLS_FETCH_FROM_CTX(pool->tsrm_ls); +#endif getObjectEx(http_request_object, req, request); #if HTTP_DEBUG_REQPOOLS @@ -409,7 +413,9 @@ void _http_request_pool_responsehandler(http_request_pool *pool) /* {{{ int http_request_pool_apply_responsehandler(http_request_pool *, zval *, void *) */ int _http_request_pool_apply_responsehandler(http_request_pool *pool, zval *req, void *ch) { +#ifdef ZTS TSRMLS_FETCH_FROM_CTX(pool->tsrm_ls); +#endif getObjectEx(http_request_object, obj, req); if ((!ch) || obj->request->ch == (CURL *) ch) { -- 2.30.2