[FIX] WSDL over https
| From: | Sagi Bashari | Date: | Thu, 12 Jun 2003 07:52:43 +0000 |
| Subject: | [FIX] WSDL over https | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-706@lists.php.net to get a copy of this message | ||
Hi,
There's a bug in the current SOAP package that treats WSDL over HTTPS as local files.
Here's a fix:
--- WSDL.php.orig 2003-06-12 10:46:45.000000000 +0300 +++ WSDL.php 2003-06-12 10:46:52.000000000 +0300@@ -672,7 +672,7 @@
if (!$md5_wsdl) {
// is it a local file?
// this section should be replace by curl at some point
- if (!preg_match('/^(http[s]|file):\/\//',$wsdl_fname)) {
+ if (!preg_match('/^(http|file):\/\//',$wsdl_fname)) {
if (!file_exists($wsdl_fname)) {
return $this->_raiseSoapFault("Unable to read local WSDL $wsdl_fname", $wsdl_fname);
}
Sagi