aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2021-09-30 13:26:55 +0200
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2021-09-30 13:26:55 +0200
commit79cd055e643dea71de0e00313cd89cf2759c2ba2 (patch)
treee08e38db768e07643da449468a434b171a4f81e4 /vendor
parentb64edf0ac291f182e978f799a9a0de7b98ff3632 (diff)
convert xmlrpc_dispatcher to new API, re #232
Diffstat (limited to 'vendor')
-rw-r--r--vendor/studip_ws/xmlrpc_dispatcher.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/vendor/studip_ws/xmlrpc_dispatcher.php b/vendor/studip_ws/xmlrpc_dispatcher.php
index 396543c..37913ea 100644
--- a/vendor/studip_ws/xmlrpc_dispatcher.php
+++ b/vendor/studip_ws/xmlrpc_dispatcher.php
@@ -36,19 +36,21 @@ class Studip_Ws_XmlrpcDispatcher extends Studip_Ws_Dispatcher {
function dispatch($msg = NULL) {
# ensure correct invocation
- if (is_null($msg) || !is_a($msg, 'xmlrpcmsg'))
+ if (is_null($msg) || !is_a($msg, 'PhpXmlrpc\Request'))
return $this->throw_exception('functions_parameters_type must not be '.
'phpvals.');
+ $encoder = new PhpXmlRpc\Encoder();
+
# get decoded parameters
$len = $msg->getNumParams();
$argument_array = array();
for ($i = 0; $i < $len; ++$i)
- $argument_array[] = php_xmlrpc_decode($msg->getParam($i));
+ $argument_array[] = $encoder->decode($msg->getParam($i));
# return result
return new xmlrpcresp(
- php_xmlrpc_encode($this->invoke($msg->method(), $argument_array)));
+ $encoder->encode($this->invoke($msg->method(), $argument_array)));
}