X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.c;h=f9bb4d09c886f4e049e852d9b983e38194821eee;hp=bd7baff1078fffbad0a4cb5bd1b3e7be73b6c497;hb=4bf1b4570329514fa00dc68c6e02f581c3792d73;hpb=4f9f3e9032252995b600ed4c4ea538e6302730a2 diff --git a/php_http.c b/php_http.c index bd7baff..f9bb4d0 100644 --- a/php_http.c +++ b/php_http.c @@ -28,8 +28,10 @@ # endif # endif #endif -#if PHP_HTTP_HAVE_SERF -# include +#if PHP_HTTP_HAVE_IDN2 +# include +#elif PHP_HTTP_HAVE_IDN +# include #endif ZEND_DECLARE_MODULE_GLOBALS(php_http); @@ -104,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() @@ -132,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) @@ -227,6 +222,12 @@ PHP_MINFO_FUNCTION(http) php_info_print_table_row(3, "libevent", "disabled", "disabled"); #endif +#if PHP_HTTP_HAVE_IDN2 + php_info_print_table_row(3, "libidn2 (IDNA2008)", IDN2_VERSION, idn2_check_version(NULL)); +#elif PHP_HTTP_HAVE_IDN + php_info_print_table_row(3, "libidn (IDNA2003)", PHP_HTTP_LIBIDN_VERSION, "unknown"); +#endif + php_info_print_table_end(); DISPLAY_INI_ENTRIES();