diff options
author | Keith Smiley <ksmiley@salesforce.com> | 2016-10-13 23:56:24 -0400 |
---|---|---|
committer | Keith Smiley <ksmiley@salesforce.com> | 2016-10-13 23:56:24 -0400 |
commit | 3b9ba6195db2c17147b0fed4af3398320967002f (patch) | |
tree | 36b959ce5d9c7e00360bb98e3eb818246160bd8b /ext/soap/tests | |
parent | 31cbce341c4a5017eac3239c8ff1278cb9ff3900 (diff) | |
download | php-git-3b9ba6195db2c17147b0fed4af3398320967002f.tar.gz |
soap #69137 - Invert logic to be correct
Diffstat (limited to 'ext/soap/tests')
-rw-r--r-- | ext/soap/tests/bug69137.phpt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/soap/tests/bug69137.phpt b/ext/soap/tests/bug69137.phpt index a4d3baad88..9160b91c25 100644 --- a/ext/soap/tests/bug69137.phpt +++ b/ext/soap/tests/bug69137.phpt @@ -7,7 +7,7 @@ if (getenv("SKIP_ONLINE_TESTS")) { die("skip test requiring internet connection" if (!getenv('http_proxy')) { die("skip test unless an HTTP/HTTPS proxy server is specified in http_proxy environment variable"); } ?> --INI-- -soap.wsdl_cache_enabled=0 +soap.wsdl_cache_enabled=1 --FILE-- <?php @@ -19,7 +19,12 @@ class IpLookup list ($proxyHost, $proxyPort) = explode(':', str_replace('http://', '', $_ENV['http_proxy'])); +// Prime the WSDL cache because that request sets peer_name on the HTTP context +// and masks the SOAP bug. $testServiceWsdl = 'https://ws.cdyne.com/ip2geo/ip2geo.asmx?wsdl'; +$client = new SoapClient($testServiceWsdl); +unset($client); + $parameters = [ 'proxy_host' => $proxyHost, 'proxy_port' => $proxyPort, |