X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2FPhpXmlRpc.php;h=416d53f7dbb8d21f01e40878e284722d16caa2b0;hb=b8d1476c733732b4f5608f96113e4c8142bb910a;hp=9beba9d854a76198bf932dc1cf9821a50565e05c;hpb=ae1ecdc2858c57e7ebf62b4cabf7e4d69dd303f0;p=plcapi.git diff --git a/src/PhpXmlRpc.php b/src/PhpXmlRpc.php index 9beba9d..416d53f 100644 --- a/src/PhpXmlRpc.php +++ b/src/PhpXmlRpc.php @@ -36,22 +36,22 @@ class PhpXmlRpc static public $xmlrpcstr = array( 'unknown_method' => 'Unknown method', - 'invalid_return' => 'Invalid return payload: enable debugging to examine incoming payload', + 'invalid_return' => 'Invalid response payload (you can use the setDebug method to allow analysis of the response)', 'incorrect_params' => 'Incorrect parameters passed to method', 'introspect_unknown' => "Can't introspect: method unknown", - 'http_error' => "Didn't receive 200 OK from remote server.", - 'no_data' => 'No data received from server.', - 'no_ssl' => 'No SSL support compiled in.', + 'http_error' => "Didn't receive 200 OK from remote server", + 'no_data' => 'No data received from server', + 'no_ssl' => 'No SSL support compiled in', 'curl_fail' => 'CURL error', 'invalid_request' => 'Invalid request payload', - 'no_curl' => 'No CURL support compiled in.', + 'no_curl' => 'No CURL support compiled in', 'server_error' => 'Internal server error', 'multicall_error' => 'Received from server invalid multicall response', 'multicall_notstruct' => 'system.multicall expected struct', - 'multicall_nomethod' => 'missing methodName', + 'multicall_nomethod' => 'Missing methodName', 'multicall_notstring' => 'methodName is not a string', - 'multicall_recursion' => 'recursive system.multicall forbidden', - 'multicall_noparams' => 'missing params', + 'multicall_recursion' => 'Recursive system.multicall forbidden', + 'multicall_noparams' => 'Missing params', 'multicall_notarray' => 'params is not an array', 'cannot_decompress' => 'Received from server compressed HTTP and cannot decompress', @@ -61,25 +61,24 @@ class PhpXmlRpc 'server_decompress_fail' => 'Received from client invalid compressed HTTP request', ); - // The charset encoding used by the server for received requests and - // by the client for received responses when received charset cannot be determined - // and mbstring extension is not enabled + // The charset encoding used by the server for received requests and by the client for received responses when + // received charset cannot be determined and mbstring extension is not enabled public static $xmlrpc_defencoding = "UTF-8"; - // The list of encodings used by the server for requests and by the client for responses - // to detect the charset of the received payload when + // The list of encodings used by the server for requests and by the client for responses to detect the charset of + // the received payload when // - the charset cannot be determined by looking at http headers, xml declaration or BOM // - mbstring extension is enabled public static $xmlrpc_detectencodings = array(); // The encoding used internally by PHP. - // String values received as xml will be converted to this, and php strings will be converted to xml - // as if having been coded with this. + // String values received as xml will be converted to this, and php strings will be converted to xml as if + // having been coded with this. // Valid also when defining names of xmlrpc methods public static $xmlrpc_internalencoding = "UTF-8"; public static $xmlrpcName = "XML-RPC for PHP"; - public static $xmlrpcVersion = "4.2.1"; + public static $xmlrpcVersion = "4.7.0-dev"; // let user errors start at 800 public static $xmlrpcerruser = 800; @@ -94,6 +93,9 @@ class PhpXmlRpc public static $xmlrpc_null_apache_encoding_ns = "http://ws.apache.org/xmlrpc/namespaces/extensions"; + // number of decimal digits used to serialize Double values + public static $xmlpc_double_precision = 128; + /** * A function to be used for compatibility with legacy code: it creates all global variables which used to be declared, * such as library version etc... @@ -105,8 +107,8 @@ class PhpXmlRpc $GLOBALS[$name] = $value; } - // NB: all the variables exported into the global namespace below here do NOT guarantee 100% - // compatibility, as they are NOT reimported back during calls to importGlobals() + // NB: all the variables exported into the global namespace below here do NOT guarantee 100% compatibility, + // as they are NOT reimported back during calls to importGlobals() $reflection = new \ReflectionClass('PhpXmlRpc\Value'); foreach ($reflection->getStaticProperties() as $name => $value) { @@ -146,5 +148,4 @@ class PhpXmlRpc } } } - }