note 114252 deleted from soapclient.soapclient by crell
| From: | crell@php.net | Date: | Mon, 04 Apr 2022 16:51:29 +0000 |
| Subject: | note 114252 deleted from soapclient.soapclient by crell | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-218101@lists.php.net to get a copy of this message | ||
Note Submitter: michael dot arnauts at gmail dot com
----
This doesn't seem to be documented, but when you want to use compression for your outgoing
requests, you have to OR with the compression level:
<?php
$client = new SoapClient("some.wsdl",
array('compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | 9));
?>
This can be really usefull if you want to send large amounts of data.
Source: https://bugs.php.net/bug.php?id=36283