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.
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 for0
.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).