cvs: pear /XML_RPC RPC.php Server.php package.xml package2.xml
| From: | Daniel Convissor | Date: | Wed, 06 Apr 2005 14:56:46 +0000 |
| Subject: | cvs: pear /XML_RPC RPC.php Server.php package.xml package2.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-30979@lists.php.net to get a copy of this message | ||
danielc Wed Apr 6 10:56:46 2005 EDT
Modified files:
/pear/XML_RPC RPC.php Server.php package.xml package2.xml
Log:
* Add Fault Code 6: "The requested method didn't return an
XML_RPC_Response object." Request 4032.
http://cvs.php.net/diff.php/pear/XML_RPC/RPC.php?r1=1.62&r2=1.63&ty=u
Index: pear/XML_RPC/RPC.php
diff -u pear/XML_RPC/RPC.php:1.62 pear/XML_RPC/RPC.php:1.63
--- pear/XML_RPC/RPC.php:1.62 Mon Apr 4 02:17:54 2005
+++ pear/XML_RPC/RPC.php Wed Apr 6 10:56:44 2005
@@ -32,7 +32,7 @@
* @author Martin Jansen <mj@php.net>
* @author Daniel Convissor <danielc@php.net>
* @copyright 1999-2001 Edd Dumbill
- * @version CVS: $Id: RPC.php,v 1.62 2005/04/04 06:17:54 danielc Exp $
+ * @version CVS: $Id: RPC.php,v 1.63 2005/04/06 14:56:44 danielc Exp $
* @link http://pear.php.net/package/XML_RPC
*/
@@ -138,6 +138,7 @@
'incorrect_params' => 3,
'introspect_unknown' => 4,
'http_error' => 5,
+ 'not_response_object' => 6,
);
/**
@@ -150,6 +151,7 @@
'incorrect_params' => 'Incorrect parameters passed to method',
'introspect_unknown' => 'Can\'t introspect: method unknown',
'http_error' => 'Didn\'t receive 200 OK from remote
server.',
+ 'not_response_object' => 'The requested method didn\'t return an
XML_RPC_Response object.',
);
http://cvs.php.net/diff.php/pear/XML_RPC/Server.php?r1=1.18&r2=1.19&ty=u
Index: pear/XML_RPC/Server.php
diff -u pear/XML_RPC/Server.php:1.18 pear/XML_RPC/Server.php:1.19
--- pear/XML_RPC/Server.php:1.18 Fri Mar 11 17:07:38 2005
+++ pear/XML_RPC/Server.php Wed Apr 6 10:56:44 2005
@@ -31,7 +31,7 @@
* @author Stig Bakken <stig@php.net>
* @author Martin Jansen <mj@php.net>
* @copyright 1999-2001 Edd Dumbill
- * @version CVS: $Id: Server.php,v 1.18 2005/03/11 22:07:38 danielc Exp $
+ * @version CVS: $Id: Server.php,v 1.19 2005/04/06 14:56:44 danielc Exp $
* @link http://pear.php.net/package/XML_RPC
*/
@@ -435,6 +435,10 @@
} else {
$r = call_user_func($dmap[$methName]['function'], $m);
}
+ if (!is_a($r, 'XML_RPC_Response')) {
+ $r = new XML_RPC_Response(0, $XML_RPC_err['not_response_object'],
+ $XML_RPC_str['not_response_object']);
+ }
} else {
$r = new XML_RPC_Response(0, $XML_RPC_err['incorrect_params'],
$XML_RPC_str['incorrect_params']
http://cvs.php.net/diff.php/pear/XML_RPC/package.xml?r1=1.43&r2=1.44&ty=u
Index: pear/XML_RPC/package.xml
diff -u pear/XML_RPC/package.xml:1.43 pear/XML_RPC/package.xml:1.44
--- pear/XML_RPC/package.xml:1.43 Fri Mar 11 17:07:38 2005
+++ pear/XML_RPC/package.xml Wed Apr 6 10:56:44 2005
@@ -2,7 +2,7 @@
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">
<package version="1.0">
- <!-- $Id: package.xml,v 1.43 2005/03/11 22:07:38 danielc Exp $ -->
+ <!-- $Id: package.xml,v 1.44 2005/04/06 14:56:44 danielc Exp $ -->
<name>XML_RPC</name>
<summary>PHP implementation of the XML-RPC protocol</summary>
@@ -31,10 +31,11 @@
<release>
<version>1.2.3</version>
- <date>pending</date>
+ <date>2005-04-06</date>
<state>stable</state>
<notes><![CDATA[
* When using a proxy, add the protocol to the Request-URI, making it an "absoluteURI" as
per the HTTP 1.0 spec. Bug 3679.
+* Add Fault Code 6: "The requested method didn't return an XML_RPC_Response object."
Request 4032.
]]></notes>
<filelist>
http://cvs.php.net/diff.php/pear/XML_RPC/package2.xml?r1=1.5&r2=1.6&ty=u
Index: pear/XML_RPC/package2.xml
diff -u pear/XML_RPC/package2.xml:1.5 pear/XML_RPC/package2.xml:1.6
--- pear/XML_RPC/package2.xml:1.5 Fri Mar 11 17:07:39 2005
+++ pear/XML_RPC/package2.xml Wed Apr 6 10:56:45 2005
@@ -8,7 +8,7 @@
http://pear.php.net/dtd/package-2.0
http://pear.php.net/dtd/package-2.0.xsd">
- <!-- $Id: package2.xml,v 1.5 2005/03/11 22:07:39 danielc Exp $ -->
+ <!-- $Id: package2.xml,v 1.6 2005/04/06 14:56:45 danielc Exp $ -->
<name>XML_RPC</name>
<channel>pear.php.net</channel>
@@ -32,7 +32,7 @@
<active>yes</active>
</lead>
- <date>pending</date>
+ <date>2005-04-06</date>
<version>
<release>1.2.3</release>
@@ -46,6 +46,7 @@
<license uri="http://www.php.net/license/3_0.txt">PHP
License</license>
<notes><![CDATA[
* Convert the parser handle to an integer before using it as an index for $XML_RPC_xh[$parser].
Reduces E_STRICT notices. Bug 3782.
+* Add Fault Code 6: "The requested method didn't return an XML_RPC_Response object."
Request 4032.
]]></notes>
<contents>
@@ -82,7 +83,7 @@
<name>PEAR</name>
<channel>pear.php.net</channel>
<min>1.4.0a1</min>
- <max>1.4.0a4</max>
+ <max>1.4.0a10</max>
</compatible>
<dependencies>