Skip to content

Commit b4aea52

Browse files
author
Ilia Alshanetsky
committed
Fixed bug #61423 (gzip compression fails).
1 parent 672fe54 commit b4aea52

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ PHP NEWS
9090

9191
- SOAP
9292
. Fixed basic HTTP authentication for WSDL sub requests. (Dmitry)
93+
. Fixed bug #61423 (gzip compression fails). (Ilia)
9394
. Fixed bug #60887 (SoapClient ignores user_agent option and sends no
9495
User-Agent header). (carloschilazo at gmail dot com)
9596
. Fixed bug #60842, #51775 (Chunked response parsing error when

ext/soap/php_http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ int make_http_soap_request(zval *this_ptr,
336336
n = 3;
337337
ZVAL_STRING(&func, "gzencode", 0);
338338
smart_str_append_const(&soap_headers_z,"Content-Encoding: gzip\r\n");
339-
ZVAL_LONG(params[2], 1);
339+
ZVAL_LONG(params[2], 0x1f);
340340
}
341341
if (call_user_function(CG(function_table), (zval**)NULL, &func, &retval, n, params TSRMLS_CC) == SUCCESS &&
342342
Z_TYPE(retval) == IS_STRING) {

0 commit comments

Comments
 (0)