From: gggeek Date: Fri, 11 Dec 2020 17:15:45 +0000 (+0000) Subject: fixes for php 8 X-Git-Tag: plcapi-7.1-0~3^2~145^2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ae5a8552a784500adbacfdbd9e0b08970a83a9fa;p=plcapi.git fixes for php 8 --- diff --git a/NEWS b/NEWS index 56c0938..529a76e 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,12 @@ +XML-RPC for PHP version 4.4.3 - unreleased + +* fixed: compatibility with PHP 8.0 (fixes to the debugger, to the server's 'system.methodHelp' method and to the + PhpXmlRpc\Wrapper class) + +* improvements to the test stack: it is now possible to run it via Docker besides Travis; avoid using _any_ external + server when running tests + + XML-RPC for PHP version 4.4.2 - 2020/3/4 * fixed: `client->setCookie()` bug: cookie values that contain spaces are now properly encoded in a way that gets them diff --git a/README.md b/README.md index d78a196..63cece5 100644 --- a/README.md +++ b/README.md @@ -11,13 +11,16 @@ Detailed installation instructions are in the [INSTALL.md](INSTALL.md) file, alo Documentation ------------- -*NB: the user manual has not been updated yet with all the changes made in version 4. Please consider it unreliable!* - -*You are encouraged to look instead the code examples found in the demo/ directory* +See the documentation page at [gggeek.github.io/phpxmlrpc](https://gggeek.github.io/phpxmlrpc) for a list of the +library main features and all project related information. The user manual can be found in the doc/manual directory, in Asciidoc format: [phpxmlrpc_manual.adoc](doc/manual/phpxmlrpc_manual.adoc) -Release tarballs also contain the HTML and PDF versions, as well as an automatically generated API documentation. +Release tarballs also contain HTML and PDF versions of the manual, as well as an automatically generated API documentation. + +*NB: the user manual has not been updated yet with all the changes made in version 4. Please consider it unreliable!* + +*You are encouraged to look instead the code examples found in the demo/ directory* Upgrading --------- diff --git a/debugger/action.php b/debugger/action.php index 0474bfe..076b1c0 100644 --- a/debugger/action.php +++ b/debugger/action.php @@ -199,7 +199,7 @@ if ($action) { case 'wrap': $msg[0] = new $requestClass('system.methodHelp', array(), $id); $msg[0]->addparam(new PhpXmlRpc\Value($method)); - $msg[1] = new $requestClass('system.methodSignature', array(), $id + 1); + $msg[1] = new $requestClass('system.methodSignature', array(), (int)$id + 1); $msg[1]->addparam(new PhpXmlRpc\Value($method)); $actionname = 'Description of method "' . $method . '"'; break; @@ -475,7 +475,7 @@ if ($action) { $encoder = new PhpXmlRpc\Encoder(); $msig = $encoder->decode($r2); $msig = $msig[$methodsig]; - $proto = $protocol == 2 ? 'https' : $protocol == 1 ? 'http11' : ''; + $proto = $protocol == 2 ? 'https' : ( $protocol == 1 ? 'http11' : '' ); if ($proxy == '' && $username == '' && !$requestcompression && !$responsecompression && $clientcookies == '' ) { @@ -541,6 +541,7 @@ if ($action) {

Changelog