From 2dc2f1f7e1142bc51fa5ac9e1004c56f9f82e47c Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 24 Apr 2007 11:31:44 +0000 Subject: [PATCH] - fix non-ZTS build, thanks Hannes --- http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/http.c b/http.c index 0299d2f..b4ed0df 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 *) */ -- 2.30.2