ZF-10542: Zend_Soap_Client unsets options with a value of 0
Description
Zend_Soap_Client strips all options with a value of 0 from the options passed to other routines. Specifically: in file Soap/Client.php in the function getOptions() beginning at line 329: currently reads: if ($value == null) { unset($options[$key]); }
testing a value of zero against null using == returns TRUE, so this unsets all options with a valid value of zero. The specific option that brought this bug to my attention was cache_wsdl, which when set to WSDL_CACHE_NONE (0) failed to work.
Comments
Posted by Jan Pieper (jpieper) on 2010-10-28T15:18:35.000+0000
Fixed in r23266.
Posted by Ramon Henrique Ornelas (ramon) on 2010-11-28T05:56:57.000+0000
Merged to branch release 1.11 r23453.
Posted by Ramon Henrique Ornelas (ramon) on 2010-11-28T05:57:33.000+0000
Assigned fix version.