import v1.1.0_beta1 | 2009-08-21

This commit is contained in:
2019-07-17 22:16:19 +02:00
parent 2c1152f0d3
commit 8dee6b1a10
2306 changed files with 251360 additions and 23428 deletions

View File

@ -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);
}