X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http.c;h=00f87743948d3450f47fb7173913453480ccd3ab;hp=d0617b639919f36243a6ba856092973483a57807;hb=a19f558421040b5396b3d76e6c4878d7eda85aba;hpb=40e535bf0ccece715c2ccc640148fab5ebd9a053 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; }