Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.
   1  <?php
   2  
   3  namespace PhpXmlRpc\Helper;
   4  
   5  /**
   6   * A helper dedicated to support Interoperability features
   7   */
   8  class Interop
   9  {
  10      /// @todo review - should we use the range -32099 .. -32000 for some server erors?
  11      public static $xmlrpcerr = array(
  12          'unknown_method' => -32601,
  13          'invalid_return' => 2,
  14          'incorrect_params' => -32602,
  15          'introspect_unknown' => -32601, // this shares the same code but has a separate meaning from 'unknown_method'...
  16          'http_error' => -32300,
  17          'no_data' => -32700,
  18          'no_ssl' => -32400,
  19          'curl_fail' => -32400,
  20          'invalid_request' => -32600,
  21          'no_curl' => -32400,
  22          'server_error' => -32500,
  23          'multicall_error' => -32700,
  24          'multicall_notstruct' => -32600,
  25          'multicall_nomethod' => -32601,
  26          'multicall_notstring' => -32600,
  27          'multicall_recursion' => -32603,
  28          'multicall_noparams' => -32602,
  29          'multicall_notarray' => -32600,
  30          'no_http2' => -32400,
  31          'invalid_xml' => -32700,
  32          'xml_not_compliant' => -32700,
  33          'xml_parsing_error' => -32700,
  34          'cannot_decompress' => -32400,
  35          'decompress_fail' => -32300,
  36          'dechunk_fail' => -32300,
  37          'server_cannot_decompress' => -32300,
  38          'server_decompress_fail' => -32300,
  39      );
  40  
  41      public static $xmlrpcerruser = -32000;
  42  }