From 25e6b2382e3c9a3c305dcd40b7bea8050bd3e5e9 Mon Sep 17 00:00:00 2001 From: Lee Rowlands Date: Wed, 5 Aug 2015 11:29:00 +1000 Subject: [PATCH] WSDLDownloader only throws \ErrorException --- SoapClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoapClient.php b/SoapClient.php index 0fa3c7d..b31e4ac 100644 --- a/SoapClient.php +++ b/SoapClient.php @@ -374,10 +374,10 @@ protected function loadWsdl($wsdl, array $options) $wsdlDownloader = new WsdlDownloader($this->curl, $resolveRemoteIncludes, $wsdlCache); try { $cacheFileName = $wsdlDownloader->download($wsdl); - } catch (\RuntimeException $e) { + } catch (\ErrorException $e) { throw new \SoapFault('WSDL', "SOAP-ERROR: Parsing WSDL: Couldn't load from '" . $wsdl . "' : failed to load external entity \"" . $wsdl . "\""); } return $cacheFileName; } -} \ No newline at end of file +}