WsdlToPhp / PackageBase

Contains base classes from which the generated classes from PackageGenerator inherit
MIT License
24 stars 26 forks source link

WSDL_CACHE_WSDL does not work! #19

Closed EmperorArthur closed 6 years ago

EmperorArthur commented 6 years ago

When attempting to create a new instance, the WSDL_CACHE_WSDL option does not work if set to WSDL_CACHE_NONE!

The Soap client defaults to caching the wsdl file, but the option to disable it is not passed to the client. This is because WSDL_CACHE_NONE is an enum for 0.

Here is the offending line: https://github.com/WsdlToPhp/PackageBase/blob/781fdeb4e9ce804b46bf5645514c2df3a45c2014/src/AbstractSoapClientBase.php#L71

The !empty check fails, so the option is discarded (even though it's even the default).