WsdlToPhp / PackageGenerator

Generates a PHP SDK based on a WSDL, simple and powerful, WSDL to PHP
https://providr.io
MIT License
428 stars 73 forks source link

In method Utils::getStreamContextOptions function array_merge_recursive works not as expected #269

Closed dypa closed 2 years ago

dypa commented 2 years ago

if we use methods setProxyHost and setProxyPort we create stream context options twice, first time in \WsdlToPhp\PackageBase\AbstractSoapClientBase::setHttpHeader and second time in \WsdlToPhp\PackageGenerator\Generator\Utils::getStreamContextOptions, this PR fixes this problem

see UtilsTest::testGetContentFromUrlContextOptionsWithSameSoapContext for more details.