com php-src: Fixed bug #61423 (gzip compression fails).: NEWS ext/soap/php_http.c
| From: | Ilia Alshanetsky | Date: | Thu, 22 Mar 2012 13:13:45 +0000 |
| Subject: | com php-src: Fixed bug #61423 (gzip compression fails).: NEWS ext/soap/php_http.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-68146@lists.php.net to get a copy of this message | ||
Commit: b4aea52682a6e7a8f0e2a7638ba37145cb6bf16d
Author: Ilia Alshanetsky <iliaal@php.net> Thu, 22 Mar 2012 09:13:45 -0400
Parents: 672fe54a00a97509c1ea08c450fe1597201c354d
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b4aea52682a6e7a8f0e2a7638ba37145cb6bf16d
Log:
Fixed bug #61423 (gzip compression fails).
Bugs:
https://bugs.php.net/61423
Changed paths:
M NEWS
M ext/soap/php_http.c
Diff:
b4aea52682a6e7a8f0e2a7638ba37145cb6bf16d
diff --git a/NEWS b/NEWS
index fa156b9..59d2aad 100644
--- a/NEWS
+++ b/NEWS
@@ -90,6 +90,7 @@ PHP NEWS
- SOAP
. Fixed basic HTTP authentication for WSDL sub requests. (Dmitry)
+ . Fixed bug #61423 (gzip compression fails). (Ilia)
. Fixed bug #60887 (SoapClient ignores user_agent option and sends no
User-Agent header). (carloschilazo at gmail dot com)
. Fixed bug #60842, #51775 (Chunked response parsing error when
diff --git a/ext/soap/php_http.c b/ext/soap/php_http.c
index 358877d..610c161 100644
--- a/ext/soap/php_http.c
+++ b/ext/soap/php_http.c
@@ -336,7 +336,7 @@ int make_http_soap_request(zval *this_ptr,
n = 3;
ZVAL_STRING(&func, "gzencode", 0);
smart_str_append_const(&soap_headers_z,"Content-Encoding: gzip\r\n");
- ZVAL_LONG(params[2], 1);
+ ZVAL_LONG(params[2], 0x1f);
}
if (call_user_function(CG(function_table), (zval**)NULL, &func, &retval, n, params
TSRMLS_CC) == SUCCESS &&
Z_TYPE(retval) == IS_STRING) {