X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http.c;h=c37638812a4ba9b7ef3fc8b273ced34a90e5b78a;hp=abb8377ac7b39e573755baf20079955d1e8bf1af;hb=b3831bc5f19cf32880ea19341c3527f0e9553517;hpb=55d74c2d07edcf6d51fe62bc257c3bde0f7f25d4 diff --git a/src/php_http.c b/src/php_http.c index abb8377..c376388 100644 --- a/src/php_http.c +++ b/src/php_http.c @@ -12,8 +12,8 @@ #include "php_http_api.h" -#include -#include +#include "php_ini.h" +#include "ext/standard/info.h" #include @@ -106,23 +106,15 @@ static void php_http_globals_init_once(zend_php_http_globals *G) } #if 0 -static inline void php_http_globals_init(zend_php_http_globals *G TSRMLS_DC) +static inline void php_http_globals_init(zend_php_http_globals *G) { } -static inline void php_http_globals_free(zend_php_http_globals *G TSRMLS_DC) +static inline void php_http_globals_free(zend_php_http_globals *G) { } #endif -#if ZTS && PHP_DEBUG && !HAVE_GCOV -zend_php_http_globals *php_http_globals(void) -{ - TSRMLS_FETCH(); - return PHP_HTTP_G; -} -#endif - PHP_INI_BEGIN() STD_PHP_INI_ENTRY("http.etag.mode", "crc32b", PHP_INI_ALL, OnUpdateString, env.etag_mode, zend_php_http_globals, php_http_globals) PHP_INI_END() @@ -134,6 +126,7 @@ PHP_MINIT_FUNCTION(http) REGISTER_INI_ENTRIES(); if (0 + || SUCCESS != PHP_MINIT_CALL(http_object) || SUCCESS != PHP_MINIT_CALL(http_exception) || SUCCESS != PHP_MINIT_CALL(http_cookie) || SUCCESS != PHP_MINIT_CALL(http_encoding)