@@ 652-660 (lines=9) @@ | ||
649 | } |
|
650 | if (!is_a($r, 'PhpXmlRpc\Response')) { |
|
651 | error_log("XML-RPC: " . __METHOD__ . ": function '$funcName' registered as method handler does not return an xmlrpc response object but a " . gettype($r)); |
|
652 | if (is_a($r, 'PhpXmlRpc\Value')) { |
|
653 | $r = new Response($r); |
|
654 | } else { |
|
655 | $r = new Response( |
|
656 | 0, |
|
657 | PhpXmlRpc::$xmlrpcerr['server_error'], |
|
658 | PhpXmlRpc::$xmlrpcstr['server_error'] . ": function does not return xmlrpc response object" |
|
659 | ); |
|
660 | } |
|
661 | } |
|
662 | } else { |
|
663 | // call a 'plain php' function |
@@ 1117-1126 (lines=10) @@ | ||
1114 | } else { |
|
1115 | // either system.multicall is unsupported by server, |
|
1116 | // or call failed for some other reason. |
|
1117 | if ($fallback) { |
|
1118 | // Don't try it next time... |
|
1119 | $this->no_multicall = true; |
|
1120 | } else { |
|
1121 | if (is_a($results, '\PhpXmlRpc\Response')) { |
|
1122 | $result = $results; |
|
1123 | } else { |
|
1124 | $result = new Response(0, PhpXmlRpc::$xmlrpcerr['multicall_error'], PhpXmlRpc::$xmlrpcstr['multicall_error']); |
|
1125 | } |
|
1126 | } |
|
1127 | } |
|
1128 | } else { |
|
1129 | // override fallback, in case careless user tries to do two |