cvs: pear /SOAP WSDL.php
| From: | Chuck Hagenbuch | Date: | Wed, 06 Apr 2005 21:56:08 +0000 |
| Subject: | cvs: pear /SOAP WSDL.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-30993@lists.php.net to get a copy of this message | ||
chagenbu Wed Apr 6 17:56:08 2005 EDT
Modified files:
/pear/SOAP WSDL.php
Log:
This is a hack, but it gets around problems that occur when parse_url thinks that c:\foo\bar on
Windows has a scheme of 'c'. I don't know of any way to fix this outside of parse_url
itself, which obviously isn't an option, and I also don't know of any valid schemes that
are one character.
http://cvs.php.net/diff.php/pear/SOAP/WSDL.php?r1=1.70&r2=1.71&ty=u
Index: pear/SOAP/WSDL.php
diff -u pear/SOAP/WSDL.php:1.70 pear/SOAP/WSDL.php:1.71
--- pear/SOAP/WSDL.php:1.70 Fri Apr 1 12:25:04 2005
+++ pear/SOAP/WSDL.php Wed Apr 6 17:56:04 2005
@@ -17,7 +17,7 @@
// | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author |
// +----------------------------------------------------------------------+
//
-// $Id: WSDL.php,v 1.70 2005/04/01 17:25:04 chagenbu Exp $
+// $Id: WSDL.php,v 1.71 2005/04/06 21:56:04 chagenbu Exp $
//
require_once 'SOAP/Base.php';
require_once 'SOAP/Fault.php';
@@ -1733,7 +1733,7 @@
return false;
}
- if (isset($parsed['scheme'])) {
+ if (!empty($parsed['scheme']) && strlen($parsed['scheme']) >
1) {
$sep = (strtolower($parsed['scheme']) == 'mailto' ? ':' :
'://');
$uri = $parsed['scheme'] . $sep;
} else {