| @@ 513-517 (lines=5) @@ | ||
| 510 | $r = new Response(0, |
|
| 511 | PhpXmlRpc::$xmlrpcerrxml + $matches[1], |
|
| 512 | $xmlRpcParser->_xh['isf_reason']); |
|
| 513 | } elseif ($xmlRpcParser->_xh['isf']) { |
|
| 514 | $r = new Response(0, |
|
| 515 | PhpXmlRpc::$xmlrpcerr['invalid_request'], |
|
| 516 | PhpXmlRpc::$xmlrpcstr['invalid_request'] . ' ' . $xmlRpcParser->_xh['isf_reason']); |
|
| 517 | } else { |
|
| 518 | // small layering violation in favor of speed and memory usage: |
|
| 519 | // we should allow the 'execute' method handle this, but in the |
|
| 520 | // most common scenario (xmlrpc values type server with some methods |
|
| @@ 289-296 (lines=8) @@ | ||
| 286 | } |
|
| 287 | } |
|
| 288 | // second error check: xml well formed but not xml-rpc compliant |
|
| 289 | elseif ($xmlRpcParser->_xh['isf'] == 2) { |
|
| 290 | if ($this->debug) { |
|
| 291 | /// @todo echo something for user? |
|
| 292 | } |
|
| 293 | ||
| 294 | $r = new Response(0, PhpXmlRpc::$xmlrpcerr['invalid_return'], |
|
| 295 | PhpXmlRpc::$xmlrpcstr['invalid_return'] . ' ' . $xmlRpcParser->_xh['isf_reason']); |
|
| 296 | } |
|
| 297 | // third error check: parsing of the response has somehow gone boink. |
|
| 298 | // NB: shall we omit this check, since we trust the parsing code? |
|
| 299 | elseif ($returnType == 'xmlrpcvals' && !is_object($xmlRpcParser->_xh['value'])) { |
|