@@ 1027-1036 (lines=10) @@ | ||
1024 | } else { |
|
1025 | // either system.multicall is unsupported by server, |
|
1026 | // or call failed for some other reason. |
|
1027 | if ($fallback) { |
|
1028 | // Don't try it next time... |
|
1029 | $this->no_multicall = true; |
|
1030 | } else { |
|
1031 | if (is_a($results, '\PhpXmlRpc\Response')) { |
|
1032 | $result = $results; |
|
1033 | } else { |
|
1034 | $result = new Response(0, PhpXmlRpc::$xmlrpcerr['multicall_error'], PhpXmlRpc::$xmlrpcstr['multicall_error']); |
|
1035 | } |
|
1036 | } |
|
1037 | } |
|
1038 | } else { |
|
1039 | // override fallback, in case careless user tries to do two |
@@ 649-657 (lines=9) @@ | ||
646 | } |
|
647 | if (!is_a($r, 'PhpXmlRpc\Response')) { |
|
648 | error_log("XML-RPC: " . __METHOD__ . ": function '$funcName' registered as method handler does not return an xmlrpc response object but a " . gettype($r)); |
|
649 | if (is_a($r, 'PhpXmlRpc\Value')) { |
|
650 | $r = new Response($r); |
|
651 | } else { |
|
652 | $r = new Response( |
|
653 | 0, |
|
654 | PhpXmlRpc::$xmlrpcerr['server_error'], |
|
655 | PhpXmlRpc::$xmlrpcstr['server_error'] . ": function does not return xmlrpc response object" |
|
656 | ); |
|
657 | } |
|
658 | } |
|
659 | } else { |
|
660 | // call a 'plain php' function |