import v1.1.0_beta1 | 2009-08-21
This commit is contained in:
@ -19,11 +19,6 @@
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
|
||||
|
||||
/** Zend_XmlRpc_Client_IntrospectException */
|
||||
require_once 'Zend/XmlRpc/Client/IntrospectException.php';
|
||||
|
||||
|
||||
/**
|
||||
* Wraps the XML-RPC system.* introspection methods
|
||||
*
|
||||
@ -60,6 +55,7 @@ class Zend_XmlRpc_Client_ServerIntrospection
|
||||
{
|
||||
$methods = $this->listMethods();
|
||||
|
||||
require_once 'Zend/XmlRpc/Client/FaultException.php';
|
||||
try {
|
||||
$signatures = $this->getSignatureForEachMethodByMulticall($methods);
|
||||
} catch (Zend_XmlRpc_Client_FaultException $e) {
|
||||
@ -98,11 +94,13 @@ class Zend_XmlRpc_Client_ServerIntrospection
|
||||
if (! is_array($serverSignatures)) {
|
||||
$type = gettype($serverSignatures);
|
||||
$error = "Multicall return is malformed. Expected array, got $type";
|
||||
require_once 'Zend/XmlRpc/Client/IntrospectException.php';
|
||||
throw new Zend_XmlRpc_Client_IntrospectException($error);
|
||||
}
|
||||
|
||||
if (count($serverSignatures) != count($methods)) {
|
||||
$error = 'Bad number of signatures received from multicall';
|
||||
require_once 'Zend/XmlRpc/Client/IntrospectException.php';
|
||||
throw new Zend_XmlRpc_Client_IntrospectException($error);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user