- encodings support exists with ext/zlib too
[m6w6/ext-http] / http_api.c
index 683da9db6959f518b2e5fb9aea440e7ccded71dd..3e8ec02b187f350506a8cda243009795922508c5 100644 (file)
@@ -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