X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=NEWS;h=5ff12fc1c49c1df236542fc32e1c875de254ec2e;hb=e01e1ef7d893dde2dd3aa1f314fdab67770d8908;hp=f3caf81b6a9ec9cf64ae8e16062b539938ccb484;hpb=3b18a711d68f936d7395ade1903fe0875cb5fd9c;p=plcapi.git diff --git a/NEWS b/NEWS index f3caf81..5ff12fc 100644 --- a/NEWS +++ b/NEWS @@ -1,11 +1,50 @@ -XML-RPC for PHP version 4.5.2 - unreleased +XML-RPC for PHP version 4.6.0 - 2021/12/9 -* improved: better phpdocs in the the php code generated by the Wrapper class +* fixed: compatibility with php 8.1 -* improved: allow usage of 'epivals' for the 'parameters_type' member of methods definitions in the Server dispatch map +* improved: when encoding utf8 text into us-ascii xml, use character entity references for characters number 0-31 + (ascii non printable characters), as we were already doing when encoding iso-8859-1 text into us-ascii xml + +* new: method `Server::getDispatchMap()`. Useful for non-child classes which want to f.e. introspect the server + +* new: increase flexibility in class composition by adopting a Dependency Injection (...ish) pattern: + it is now possible to swap out the Logger, XMLParser and Charset classes with similar ones of your own making. + Example code: + // 1. create an instance of a custom character encoder + // $myCharsetEncoder = ... + // 2. then use it while serializing a Request: + Request::setCharsetEncoder($myCharsetEncoder); + $request->serialize($funkyCharset); + +* new: method `XMLParser::parse()` acquired a 4th argument + +* new: method `Wrapper::wrapPhpClass` allows to customize the names of the phpxmlrpc methods by stripping the original + class name and accompanying namespace and replace it with a user-defined prefix, via option `replace_class_name` + +* new: `Response` constructor gained a 4th argument + +* deprecated: properties `Response::hdrs`, `Response::_cookies`, `Response::raw_data`. Use `Response::httpResponse()` instead. + That method returns an array which also holds the http response's status code - useful in case of http errors. + +* deprecated: method `Request::createPayload`. Use `Request::serialize` instead + +* deprecated: property `Request::httpResponse` + +* improved: `Http::parseResponseHeaders` now throws a more specific exception in case of http errors + +* improved: Continuous Integration is now running on Github Actions instead of Travis + + +XML-RPC for PHP version 4.5.2 - 2021/1/11 + +* improved: better phpdocs in the the php code generated by the Wrapper class * improved: debugger favicon and page title when used from the phpjsonrpc library +* fixed: allow `Encoder::decode` to properly support different target character sets for polyfill-xmlrpc decode functions + +* improved: allow usage of 'epivals' for the 'parameters_type' member of methods definitions in the Server dispatch map + XML-RPC for PHP version 4.5.1 - 2021/1/3