From 287ad6dc23f4b285b97ff066698ba40d8cd58081 Mon Sep 17 00:00:00 2001 From: gggeek Date: Mon, 2 Jan 2023 16:51:59 +0000 Subject: [PATCH] more WIP on the manual and php comments --- doc/manual/phpxmlrpc_manual.adoc | 25 ++++++++++++++++++++----- src/Helper/Http.php | 2 +- src/Helper/Logger.php | 2 +- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/doc/manual/phpxmlrpc_manual.adoc b/doc/manual/phpxmlrpc_manual.adoc index e0768acb..4b4e6344 100644 --- a/doc/manual/phpxmlrpc_manual.adoc +++ b/doc/manual/phpxmlrpc_manual.adoc @@ -938,7 +938,11 @@ PhpxmlRpc\PhpXmlRpc::$xmlrpc_internalencoding = 'ISO-8859-1'; $v = new Value(utf8_decode('Hélène')); // This xmlrpc value will be correctly serialized as the french name ---- -===== $xmlrpcName +==== $xmlpc_double_precision + +@TODO... + +==== $xmlrpcName PhpxmlRpc\PhpXmlRpc::$xmlrpcName = "XML-RPC for PHP" @@ -946,7 +950,7 @@ The string representation of the name of the XML-RPC for PHP library. It is used HTTP header that is sent with every request to the server. You can change its value if you need to customize the User-Agent string. -===== $xmlrpcVersion +==== $xmlrpcVersion PhpxmlRpc\PhpXmlRpc::$xmlrpcVersion = "4.9.3" @@ -954,7 +958,7 @@ The string representation of the version number of the XML-RPC for PHP library i building the User-Agent HTTP header that is sent with every request to the server. You can change its value if you need to customize the User-Agent string. -===== $xmlrpc_null_extension +==== $xmlrpc_null_extension PhpxmlRpc\PhpXmlRpc::$xmlrpc_null_extension = FALSE @@ -962,7 +966,7 @@ When set to `TRUE`, the lib will enable support for the `` (and ` the standard proposed here. This means that `` and `` tags received will be parsed as valid xmlrpc, and the corresponding xmlrpcvals will return "null" for scalarTyp(). -===== $xmlrpc_null_apache_encoding +==== $xmlrpc_null_apache_encoding PhpxmlRpc\PhpXmlRpc::$$xmlrpc_null_apache_encoding = FALSE @@ -1135,7 +1139,15 @@ $val = php_xmlrpc_decode_xml($text); if ($val) echo 'Found a value of type '.$val->kindOf(); else echo 'Found invalid xml'; ---- -==== Automatic conversion of php functions into xmlrpc methods (and vice versa) +=== Logging + +@TODO... + +=== Transferring PHP objects over XML-RPC + +@TODO... + +=== Code generation, Proxy objects & co. For the extremely lazy coder, helper functions have been added that allow to convert a php function into an xmlrpc method, and a remotely exposed xmlrpc method into a local php function - or a set of xmlrpc methods into a php class. Note that these come with many caveat. @@ -1310,6 +1322,9 @@ if ($findstate_sig) $srv = new Server($methods); ---- +== Performances + +@TODO... == Upgrading diff --git a/src/Helper/Http.php b/src/Helper/Http.php index 16c985b9..4b74f39c 100644 --- a/src/Helper/Http.php +++ b/src/Helper/Http.php @@ -62,7 +62,7 @@ class Http } /** - * Parses HTTP an http response headers and separates them from the body. + * Parses HTTP an http response's headers and separates them from the body. * * @param string $data the http response, headers and body. It will be stripped of headers * @param bool $headersProcessed when true, we assume that response inflating and dechunking has been already carried out diff --git a/src/Helper/Logger.php b/src/Helper/Logger.php index 9e6908bb..54b3be4d 100644 --- a/src/Helper/Logger.php +++ b/src/Helper/Logger.php @@ -57,7 +57,7 @@ class Logger print "\n$message\n"; } - // let the user see this now in case there's a time out later... + // let the user see this now in case there's a time-out later... flush(); } -- 2.47.0