From f0733bd6715d88cd3aa98e514c64fe9c41d6de47 Mon Sep 17 00:00:00 2001 From: Teddy Cornaut Date: Thu, 10 Oct 2019 15:17:16 -0400 Subject: [PATCH] =?UTF-8?q?Nouvelle=20m=C3=A9thode=20de=20validation=20des?= =?UTF-8?q?=20WSDL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BeSimple/SoapClient/WsdlDownloader.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/BeSimple/SoapClient/WsdlDownloader.php b/src/BeSimple/SoapClient/WsdlDownloader.php index 9045ac7..c41f636 100644 --- a/src/BeSimple/SoapClient/WsdlDownloader.php +++ b/src/BeSimple/SoapClient/WsdlDownloader.php @@ -93,16 +93,6 @@ class WsdlDownloader if ($isRemoteFile || $this->resolveRemoteIncludes) { $cacheFilePath = $this->cacheDir.DIRECTORY_SEPARATOR.'wsdl_'.md5($wsdl).'.cache'; - if (file_exists($cacheFilePath)) { - clearstatcache(); - $xml = \XMLReader::open($cacheFilePath); - $xml->setParserProperty(\XMLReader::VALIDATE, true); - if (!filesize($cacheFilePath) || !$xml->isValid()) { - unlink($cacheFilePath); - throw new \Exception('There is something wrong with the WSDL file formatting. The file has been deleted from the cache and will be downloaded again on the next request.'); - } - } - if (!$this->cacheEnabled || !file_exists($cacheFilePath) || (filemtime($cacheFilePath) + $this->cacheTtl) < time()) { if ($isRemoteFile) { // execute request