From 018fc873442382209f9aa03d0f7bdb23780b8bf1 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 7 Feb 2006 12:57:43 +0000 Subject: [PATCH] Compression level shouldn't be greatr then 9. --- ext/soap/php_http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index b8c5f05b90..072c812e5d 100644 --- a/ext/soap/php_http.c +++ b/ext/soap/php_http.c @@ -250,6 +250,8 @@ int make_http_soap_request(zval *this_ptr, int level = Z_LVAL_PP(tmp) & 0x0f; int kind = Z_LVAL_PP(tmp) & SOAP_COMPRESSION_DEFLATE; + if (level > 9) {level = 9;} + if ((Z_LVAL_PP(tmp) & SOAP_COMPRESSION_ACCEPT) != 0) { smart_str_append_const(&soap_headers_z,"Accept-Encoding: gzip, deflate\r\n"); } -- 2.50.1