X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http.c;h=00f87743948d3450f47fb7173913453480ccd3ab;hb=bae1d9bccd93257b15065f1b51579b2d0b5cc1e4;hp=d0617b639919f36243a6ba856092973483a57807;hpb=bf87f6e654235acb023ca052a5e71faeb2635a3f;p=m6w6%2Fext-http diff --git a/http.c b/http.c index d0617b6..00f8774 100644 --- a/http.c +++ b/http.c @@ -35,6 +35,9 @@ #ifdef HTTP_HAVE_CURL # include "php_http_request_api.h" #endif +#ifdef HTTP_HAVE_ZLIB +# include "php_http_encoding_api.h" +#endif #ifdef ZEND_ENGINE_2 # include "php_http_filter_api.h" @@ -103,8 +106,6 @@ zend_function_entry http_functions[] = { #endif PHP_FE(ob_etaghandler, NULL) #ifdef HTTP_HAVE_ZLIB - PHP_FE(http_gzencode, NULL) - PHP_FE(http_gzdecode, NULL) PHP_FE(http_deflate, NULL) PHP_FE(http_inflate, NULL) #endif @@ -223,6 +224,9 @@ PHP_MINIT_FUNCTION(http) #ifdef HTTP_HAVE_CURL (SUCCESS != PHP_MINIT_CALL(http_request)) || #endif /* HTTP_HAVE_CURL */ +#ifdef HTTP_HAVE_ZLIB + (SUCCESS != PHP_MINIT_CALL(http_encoding)) || +#endif (SUCCESS != PHP_MINIT_CALL(http_request_method))) { return FAILURE; }