X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.c;h=2ff20f105321e0ba4271480d3695570ecaf60e88;hp=bd7baff1078fffbad0a4cb5bd1b3e7be73b6c497;hb=a9b5cbfc56a4fcb52e8cf4d353a8b64a8b9acbb2;hpb=333ffe4376d543204387d3cbd8e17f4a675cf3e5 diff --git a/php_http.c b/php_http.c index bd7baff..2ff20f1 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); @@ -227,6 +229,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();