From edab58cb1940a7710d931a54b278b344682d1031 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 27 Feb 2018 15:29:13 +0100 Subject: [PATCH] fix build without brotli --- src/php_http_encoding.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2