From 92e407837d6ceed17238c71857b794813dcec03c Mon Sep 17 00:00:00 2001 From: gggeek Date: Sat, 21 Jan 2023 13:49:00 +0000 Subject: [PATCH] docs --- NEWS.md | 11 +++++++---- src/Server.php | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/NEWS.md b/NEWS.md index c0e5d72d..0035d2df 100644 --- a/NEWS.md +++ b/NEWS.md @@ -12,10 +12,10 @@ An example of using this feature has been added to demo file `windowscharset.php` -* new: allow the library to pass to the application DateTime objects instead of string for all received dateTime.iso8601 - xml-rpc values. This includes both client-side, for data with the `$response->value()`, and server-side, for data - passed to xml-rpc method handlers, and works both in 'xmlrpcvals' and in 'phpvals' modes. - In order to enable this, you can set `PhpXmlRpc\PhpXmlRpc::$xmlrpc_return_datetimes = true`. +* new: allow the library to pass to the application DateTime objects instead of string for all _received_ dateTime.iso8601 + xml-rpc values. This includes both client-side, for data within the `$response->value()`, and server-side, for data + passed to xml-rpc method handlers, and works for both 'xmlrpcvals' and 'phpvals' modes. + In order to enable this, you should set `PhpXmlRpc\PhpXmlRpc::$xmlrpc_return_datetimes = true`. NB: since the xml-rpc spec mandates that no Timezone is used on the wire for dateTime values, the DateTime objects created by the library will be set to the default php timzeone, set using the 'date.timezone' ini setting. @@ -46,6 +46,8 @@ * improved: method `Server::add_to_map` has acquired a 6th parameter: `$parametersType = false` +* improved: the `XMLParser` accepts more options in its constructor (see phpdocs for details) + * improved: removed usage of `extension_loaded` in favour of `function_exists` when checking for mbstring. This allows for mbstring functions to be polyfilled @@ -68,6 +70,7 @@ set. We expect this to affect few users, as setting `PhpXmlRpc::$internal_encoding` to a custom character set did not make a lot of sense beforehand - parameters `$timeout` and `$method` are now considered deprecated in `Client::send()` and `Client::multicall()` + - Client properties `$errno` and `$errstring` are now deprecated - the code generated by the debugger when using "Generate stub for method call" will throw on errors instead of returning a Response object diff --git a/src/Server.php b/src/Server.php index 8d82db6b..d681364d 100644 --- a/src/Server.php +++ b/src/Server.php @@ -99,6 +99,7 @@ class Server /** * @var mixed * Extra data passed at runtime to method handling functions. Used only by EPI layer + * @internal */ public $user_data = null; -- 2.47.0