From: Dmitry Stogov Date: Tue, 7 Feb 2006 12:57:28 +0000 (+0000) Subject: Compression level shouldn't be greatr then 9. X-Git-Tag: php-5.1.3RC1~132 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9167991f69618a2855be61276922290e49b6e620;p=php Compression level shouldn't be greatr then 9. --- diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c index 9a21371d44..697cf7e285 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"); }