@@ 188-191 (lines=4) @@ | ||
185 | ||
186 | $this->httpResponse = array('raw_data' => $data, 'headers' => array(), 'cookies' => array()); |
|
187 | ||
188 | if ($data == '') { |
|
189 | Logger::instance()->errorLog('XML-RPC: ' . __METHOD__ . ': no response received from server.'); |
|
190 | return new Response(0, PhpXmlRpc::$xmlrpcerr['no_data'], PhpXmlRpc::$xmlrpcstr['no_data']); |
|
191 | } |
|
192 | ||
193 | // parse the HTTP headers of the response, if present, and separate them from data |
|
194 | if (substr($data, 0, 4) == 'HTTP') { |
@@ 616-623 (lines=8) @@ | ||
613 | } |
|
614 | ||
615 | // verify that function to be invoked is in fact callable |
|
616 | if (!is_callable($func)) { |
|
617 | Logger::instance()->errorLog("XML-RPC: " . __METHOD__ . ": function '$funcName' registered as method handler is not callable"); |
|
618 | return new Response( |
|
619 | 0, |
|
620 | PhpXmlRpc::$xmlrpcerr['server_error'], |
|
621 | PhpXmlRpc::$xmlrpcstr['server_error'] . ": no function matches method" |
|
622 | ); |
|
623 | } |
|
624 | ||
625 | // If debug level is 3, we should catch all errors generated during |
|
626 | // processing of user function, and log them as part of response |