summaryrefslogtreecommitdiff
path: root/ext/soap/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/soap/tests')
-rw-r--r--ext/soap/tests/bug69137.phpt7
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,