cvs: pear /SOAP WSDL.php

From: Date: Wed, 06 Apr 2005 22:39:04 +0000
Subject: cvs: pear /SOAP WSDL.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30998@lists.php.net to get a copy of this message
chagenbu Wed Apr 6 18:39:04 2005 EDT Modified files: /pear/SOAP WSDL.php Log: Revert; the better course is apparnetly to just silence the parse_url() call. Fixed naming of merge_url while I was there. Technically could be a bc break, but mergeUrl() should be private, we're not at 1.0 yet, and I can't imagine *why* someone would have been using it anyway. :) http://cvs.php.net/diff.php/pear/SOAP/WSDL.php?r1=1.71&r2=1.72&ty=u Index: pear/SOAP/WSDL.php diff -u pear/SOAP/WSDL.php:1.71 pear/SOAP/WSDL.php:1.72 --- pear/SOAP/WSDL.php:1.71 Wed Apr 6 17:56:04 2005 +++ pear/SOAP/WSDL.php Wed Apr 6 18:39:03 2005 @@ -17,7 +17,7 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: WSDL.php,v 1.71 2005/04/06 21:56:04 chagenbu Exp $ +// $Id: WSDL.php,v 1.72 2005/04/06 22:39:03 chagenbu Exp $ // require_once 'SOAP/Base.php'; require_once 'SOAP/Fault.php'; @@ -1504,10 +1504,10 @@ if ((isset($attrs['location']) || isset($attrs['schemaLocation'])) && !isset($this->wsdl->imports[$attrs['namespace']])) { $uri = isset($attrs['location']) ? $attrs['location'] : $attrs['schemaLocation']; - $location = parse_url($uri); + $location = @parse_url($uri); if (!isset($location['scheme'])) { - $base = parse_url($this->uri); - $uri = $this->merge_url($base, $uri); + $base = @parse_url($this->uri); + $uri = $this->mergeUrl($base, $uri); } $this->wsdl->imports[$attrs['namespace']] = $attrs; @@ -1726,18 +1726,19 @@ /** * $parsed is an array returned by parse_url(). + * + * @access private */ - function merge_url($parsed, $path) + function mergeUrl($parsed, $path) { if (!is_array($parsed)) { return false; } - if (!empty($parsed['scheme']) && strlen($parsed['scheme']) > 1) { + $uri = ''; + if (!empty($parsed['scheme'])) { $sep = (strtolower($parsed['scheme']) == 'mailto' ? ':' : '://'); $uri = $parsed['scheme'] . $sep; - } else { - $uri = ''; } if (isset($parsed['pass'])) {

« previous php.pear.cvs (#30998) next »