X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http.c;h=c9e693126f2c9839a1e627524b9b4751108575bd;hb=43923eca4429ed3ce5fb85407345d7030a1879f1;hp=2cc838508ce08922159fa5deb17273fe3119cfa6;hpb=b20688d08c28e9733ba6c021f5eee460ee6bf07a;p=m6w6%2Fext-http diff --git a/http.c b/http.c index 2cc8385..c9e6931 100644 --- a/http.c +++ b/http.c @@ -50,6 +50,10 @@ # include "php_http_request_object.h" # include "php_http_requestpool_object.h" # endif +# ifdef HTTP_HAVE_ZLIB +# include "php_http_deflatestream_object.h" +# include "php_http_inflatestream_object.h" +# endif # include "php_http_exception_object.h" #endif @@ -252,6 +256,10 @@ PHP_MINIT_FUNCTION(http) (SUCCESS != PHP_MINIT_CALL(http_request_object)) || (SUCCESS != PHP_MINIT_CALL(http_requestpool_object))|| # endif /* HTTP_HAVE_CURL */ +# ifdef HTTP_HAVE_ZLIB + (SUCCESS != PHP_MINIT_CALL(http_deflatestream_object)) || + (SUCCESS != PHP_MINIT_CALL(http_inflatestream_object)) || +# endif /* HTTP_HAVE_ZLIB */ (SUCCESS != PHP_MINIT_CALL(http_exception_object))) { return FAILURE; } @@ -330,6 +338,10 @@ PHP_MINFO_FUNCTION(http) "HttpRequest, " "HttpRequestPool, " # endif +# ifdef HTTP_HAVE_ZLIB + "HttpDeflateStream, " + "HttpInflateStream, " +# endif # ifndef WONKY "HttpResponse" # endif