X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=8d73ecbdfc5d10f288e18eb0bd26e447c5b932ed;hp=0299d2f920d904d7422898353d219e32d59bacef;hb=ea76053f1595a10c79735e36a51f54478ff15acf;hpb=85f5451a3e9fad7cb9728ba5408b433fca22b44b diff --git a/http.c b/http.c index 0299d2f..8d73ecb 100644 --- a/http.c +++ b/http.c @@ -201,13 +201,15 @@ static inline void _http_globals_free(zend_http_globals *G TSRMLS_DC) } } -#if PHP_DEBUG +#if defined(ZTS) && defined(PHP_DEBUG) +#if ZTS && PHP_DEBUG zend_http_globals *http_globals(void) { TSRMLS_FETCH(); return HTTP_G; } #endif +#endif /* }}} */ /* {{{ static inline void http_check_allowed_methods(char *) */ @@ -361,6 +363,9 @@ PHP_RINIT_FUNCTION(http) #endif #ifdef HTTP_HAVE_CURL # ifdef ZEND_ENGINE_2 +# ifdef HTTP_HAVE_EVENT + || SUCCESS != PHP_RINIT_CALL(http_request_pool) +# endif || SUCCESS != PHP_RINIT_CALL(http_request_datashare) # endif #endif