|
@@ -321,7 +321,7 @@ class Zend_Soap_Client
|
|
|
* ugly hack as I don't know if checking for '=== null'
|
|
* ugly hack as I don't know if checking for '=== null'
|
|
|
* breaks some other option
|
|
* breaks some other option
|
|
|
*/
|
|
*/
|
|
|
- if ($key == 'user_agent') {
|
|
|
|
|
|
|
+ if (in_array($key, array('user_agent', 'cache_wsdl', 'compression'))) {
|
|
|
if ($value === null) {
|
|
if ($value === null) {
|
|
|
unset($options[$key]);
|
|
unset($options[$key]);
|
|
|
}
|
|
}
|
|
@@ -767,15 +767,17 @@ class Zend_Soap_Client
|
|
|
/**
|
|
/**
|
|
|
* Set compression options
|
|
* Set compression options
|
|
|
*
|
|
*
|
|
|
- * @param int $compressionOptions
|
|
|
|
|
|
|
+ * @param int|null $compressionOptions
|
|
|
* @return Zend_Soap_Client
|
|
* @return Zend_Soap_Client
|
|
|
*/
|
|
*/
|
|
|
public function setCompressionOptions($compressionOptions)
|
|
public function setCompressionOptions($compressionOptions)
|
|
|
{
|
|
{
|
|
|
- $this->_compression = $compressionOptions;
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if ($compressionOptions === null) {
|
|
|
|
|
+ $this->_compression = null;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $this->_compression = (int)$compressionOptions;
|
|
|
|
|
+ }
|
|
|
$this->_soapClient = null;
|
|
$this->_soapClient = null;
|
|
|
-
|
|
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -857,17 +859,23 @@ class Zend_Soap_Client
|
|
|
/**
|
|
/**
|
|
|
* Set the SOAP Wsdl Caching Options
|
|
* Set the SOAP Wsdl Caching Options
|
|
|
*
|
|
*
|
|
|
- * @param string|int|boolean $caching
|
|
|
|
|
|
|
+ * @param string|int|boolean|null $caching
|
|
|
* @return Zend_Soap_Client
|
|
* @return Zend_Soap_Client
|
|
|
*/
|
|
*/
|
|
|
- public function setWsdlCache($options)
|
|
|
|
|
|
|
+ public function setWsdlCache($caching)
|
|
|
{
|
|
{
|
|
|
- $this->_cache_wsdl = $options;
|
|
|
|
|
|
|
+ if ($caching === null) {
|
|
|
|
|
+ $this->_cache_wsdl = null;
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $this->_cache_wsdl = (int)$caching;
|
|
|
|
|
+ }
|
|
|
return $this;
|
|
return $this;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Get current SOAP Wsdl Caching option
|
|
* Get current SOAP Wsdl Caching option
|
|
|
|
|
+ *
|
|
|
|
|
+ * @return int
|
|
|
*/
|
|
*/
|
|
|
public function getWsdlCache()
|
|
public function getWsdlCache()
|
|
|
{
|
|
{
|