X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=http_api.c;h=3e8ec02b187f350506a8cda243009795922508c5;hb=c18bf30da36029eabb2367c0751cb763d67eb6b0;hp=683da9db6959f518b2e5fb9aea440e7ccded71dd;hpb=8b5eb376ae8f5e53cfb66752327043be2669498a;p=m6w6%2Fext-http diff --git a/http_api.c b/http_api.c index 683da9d..3e8ec02 100644 --- a/http_api.c +++ b/http_api.c @@ -49,7 +49,7 @@ ZEND_EXTERN_MODULE_GLOBALS(http); static zend_bool http_support_ssl; -STATUS _http_support_global_init(INIT_FUNC_ARGS) +PHP_MINIT_FUNCTION(http_support) { http_support_ssl = http_request_supports_ssl(); @@ -79,7 +79,7 @@ PHP_HTTP_API long _http_support(long feature) #ifdef HTTP_HAVE_MAGIC support |= HTTP_SUPPORT_MAGICMIME; #endif -#ifdef HTTP_HAVE_ZLIB +#if defined(HTTP_HAVE_ZLIB) || defined(HAVE_ZLIB) support |= HTTP_SUPPORT_ENCODINGS; #endif