From: Michael Wallner Date: Tue, 27 Feb 2018 14:29:13 +0000 (+0100) Subject: fix build without brotli X-Git-Tag: RELEASE_3_2_0_RC1~17 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=edab58cb1940a7710d931a54b278b344682d1031 fix build without brotli --- diff --git a/src/php_http_encoding.c b/src/php_http_encoding.c index e4d016e..c20e163 100644 --- a/src/php_http_encoding.c +++ b/src/php_http_encoding.c @@ -538,10 +538,12 @@ static PHP_METHOD(HttpEncodingStream, __construct) ops = php_http_encoding_stream_get_inflate_ops(); } else if (instanceof_function(obj->zo.ce, php_http_dechunk_stream_class_entry)) { ops = &php_http_encoding_dechunk_ops; +#if PHP_HTTP_HAVE_LIBBROTLI } else if (instanceof_function(obj->zo.ce, php_http_get_enbrotli_stream_class_entry())) { ops = php_http_encoding_stream_get_enbrotli_ops(); } else if (instanceof_function(obj->zo.ce, php_http_get_debrotli_stream_class_entry())) { ops = php_http_encoding_stream_get_debrotli_ops(); +#endif } else { php_http_throw(runtime, "Unknown http\\Encoding\\Stream class '%s'", obj->zo.ce->name->val); return;