Cast Horde_Url to string.
authorJan Schneider <jan@horde.org>
Tue, 4 May 2010 10:16:34 +0000 (12:16 +0200)
committerJan Schneider <jan@horde.org>
Tue, 4 May 2010 10:21:07 +0000 (12:21 +0200)
framework/Rpc/lib/Horde/Rpc/Jsonrpc.php
framework/Rpc/lib/Horde/Rpc/Phpgw.php
framework/Rpc/lib/Horde/Rpc/Soap.php
framework/Rpc/lib/Horde/Rpc/Xmlrpc.php

index c5d1703..3686981 100644 (file)
@@ -177,7 +177,7 @@ class Horde_Rpc_Jsonrpc extends Horde_Rpc
         }
 
         /*@TODO Use Horde_Http_Request */
-        $http = new HTTP_Request($url, $options);
+        $http = new HTTP_Request((string)$url, $options);
         if (!empty($language)) {
             $http->addHeader('Accept-Language', $language);
         }
index 85da702..ac1bcc5 100644 (file)
@@ -142,7 +142,7 @@ class Horde_Rpc_Phpgw extends Horde_Rpc
             $options = array_merge($options, $GLOBALS['conf']['http']['proxy']);
         }
 
-        $http = new HTTP_Request($url, $options);
+        $http = new HTTP_Request((string)$url, $options);
         if (!empty($language)) {
             $http->addHeader('Accept-Language', $language);
         }
index 904ec54..1c5aeb2 100644 (file)
@@ -62,7 +62,7 @@ class Horde_Rpc_Soap extends Horde_Rpc
             $this->_serviceName = $params['serviceName'];
         }
 
-        $this->_server = new SoapServer(null, array('uri' => Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/rpc.php', true, -1)));
+        $this->_server = new SoapServer(null, array('uri' => (string)Horde::url($GLOBALS['registry']->get('webroot', 'horde') . '/rpc.php', true, -1)));
         $this->_server->addFunction(SOAP_FUNCTIONS_ALL);
         $this->_server->setClass('Horde_Rpc_Soap_Caller', $params);
     }
@@ -146,7 +146,7 @@ class Horde_Rpc_Soap extends Horde_Rpc
             $options['password'] = $options['pass'];
             unset($options['pass']);
         }
-        $options['location'] = $url;
+        $options['location'] = (string)$url;
         $options['uri'] = $options['namespace'];
 
         $soap = new SoapClient(null, $options);
index 3105c27..fe4a0fe 100644 (file)
@@ -121,7 +121,7 @@ class Horde_Rpc_Xmlrpc extends Horde_Rpc
         }
 
         /*@TODO Use Horde_Http_Request */
-        $http = new HTTP_Request($url, $options);
+        $http = new HTTP_Request((string)$url, $options);
         if (!empty($language)) {
             $http->addHeader('Accept-Language', $language);
         }