X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http.c;h=47fba6412ac76eb2736c24867e75dce222c8609d;hp=273ef7baaef04ceabfed651ba3d2df9c8e7cb1c8;hb=c5c580f24e24e8032a0554a2e39e38c496144bc2;hpb=19e82c19313a12f34fd276612cb3761c31e8c046 diff --git a/php_http.c b/php_http.c index 273ef7b..47fba64 100644 --- a/php_http.c +++ b/php_http.c @@ -14,6 +14,12 @@ #include "php_http.h" +#include +#include +#ifdef PHP_HTTP_HAVE_EVENT +# include +#endif + #include
#include #include @@ -176,8 +182,6 @@ PHP_RSHUTDOWN_FUNCTION(http) return SUCCESS; } - - PHP_MINFO_FUNCTION(http) { php_info_print_table_start(); @@ -190,22 +194,15 @@ PHP_MINFO_FUNCTION(http) php_info_print_table_start(); php_info_print_table_header(3, "Used Library", "Compiled", "Linked"); { -#ifdef PHP_HTTP_HAVE_CURL curl_version_info_data *cv = curl_version_info(CURLVERSION_NOW); + php_info_print_table_row(3, "libz", ZLIB_VERSION, zlibVersion()); php_info_print_table_row(3, "libcurl", LIBCURL_VERSION, cv->version); -#else - php_info_print_table_row(3, "libcurl", "disabled", "disabled"); -#endif #ifdef PHP_HTTP_HAVE_EVENT php_info_print_table_row(3, "libevent", PHP_HTTP_EVENT_VERSION, event_get_version()); #else php_info_print_table_row(3, "libevent", "disabled", "disabled"); #endif -#ifdef PHP_HTTP_HAVE_ZLIB - php_info_print_table_row(3, "libz", ZLIB_VERSION, zlibVersion()); -#else php_info_print_table_row(3, "libz", "disabled", "disabled"); -#endif } php_info_print_table_end();