/* {{{ 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
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
/* {{{ 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) {