From 3167db6472d5b6c691348e38b6f166198325bb6c Mon Sep 17 00:00:00 2001 From: gggeek Date: Mon, 29 Jul 2019 13:35:21 +0000 Subject: [PATCH] docs --- .travis.yml | 3 ++- INSTALL.md | 7 +++---- NEWS | 4 ++-- debugger/action.php | 2 +- debugger/common.php | 2 +- debugger/controller.php | 2 +- demo/server/proxy.php | 2 +- pakefile.php | 2 +- src/Client.php | 4 ++-- src/Encoder.php | 2 -- src/Response.php | 3 +-- src/Server.php | 3 +-- src/Value.php | 3 +-- src/Wrapper.php | 2 +- tests/1ParsingBugsTest.php | 3 +-- tests/benchmark.php | 2 +- tests/parse_args.php | 2 +- tests/phpunit_coverage.php | 2 +- tests/verify_compat.php | 2 +- 19 files changed, 23 insertions(+), 29 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2414a14d..673d0ba6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,7 @@ language: php -# As of May 2019, Travis is phasing out VMs based on Precise, which means that we can only test on php >= 5.6 going forward... +# As of May 2019, Travis is deprecating VMs based on Precise, which means that we can only test on php >= 5.6 going forward +# (nb: this is not necessarily true yet - there are projects that seem to use a different base dist depending on php version...) dist: xenial php: diff --git a/INSTALL.md b/INSTALL.md index d1dd2eb7..8595c3a9 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -8,11 +8,10 @@ The following requirements should be met prior to using 'XMLRPC for PHP': * PHP 5.3.0 or later -* the php "curl" extension is needed if you wish to use SSL or HTTP 1.1 to - communicate with remote servers +* the php "curl" extension is needed if you wish to use SSL or HTTP 1.1 to communicate with remote servers -The php "xmlrpc" native extension is not required, but if it is installed, -there will be no interference with the operation of this library. +The php "xmlrpc" native extension is not required, but if it is installed, there will be no interference with the +operation of this library. Installation instructions diff --git a/NEWS b/NEWS index 11c82835..e119c32b 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,6 @@ -XML-RPC for PHP version 4.4.0 - 2019/xx/yy +XML-RPC for PHP version 4.4.0 - 2019/7/29 -* fixed: allow handling huge xml messages (>=10MB) +* fixed: allow handling huge xml messages (>=10MB) (issue #71) XML-RPC for PHP version 4.3.2 - 2019/5/27 diff --git a/debugger/action.php b/debugger/action.php index 0d0a649e..2748b69c 100644 --- a/debugger/action.php +++ b/debugger/action.php @@ -1,7 +1,7 @@ // Add support for encoding/decoding of booleans, since they are supported in PHP case 'boolean': $xmlrpcVal = new Value($phpVal, Value::$xmlrpcBoolean); break; - // case 'array': // PHP arrays can be encoded to either xmlrpc structs or arrays, // depending on whether they are hashes or plain 0..n integer indexed diff --git a/src/Response.php b/src/Response.php index 48ebca81..9884acc3 100644 --- a/src/Response.php +++ b/src/Response.php @@ -127,8 +127,7 @@ class Response $result = "\n"; } if ($this->errno) { - // G. Giunta 2005/2/13: let non-ASCII response messages be tolerated by clients - // by xml-encoding non ascii chars + // Let non-ASCII response messages be tolerated by clients by xml-encoding non ascii chars $result .= "\n" . "\nfaultCode\n" . $this->errno . "\n\n\nfaultString\n" . diff --git a/src/Server.php b/src/Server.php index 37505f8f..6921b7e4 100644 --- a/src/Server.php +++ b/src/Server.php @@ -235,8 +235,7 @@ class Server $payload = $payload . $this->serializeDebug($respCharset); } - // G. Giunta 2006-01-27: do not create response serialization if it has - // already happened. Helps building json magic + // Do not create response serialization if it has already happened. Helps building json magic if (empty($r->payload)) { $r->serialize($respCharset); } diff --git a/src/Value.php b/src/Value.php index f51579b3..65ea64c8 100644 --- a/src/Value.php +++ b/src/Value.php @@ -246,8 +246,7 @@ class Value implements \Countable, \IteratorAggregate, \ArrayAccess $rs .= "<${typ}>" . ($val ? '1' : '0') . ""; break; case static::$xmlrpcString: - // G. Giunta 2005/2/13: do NOT use htmlentities, since - // it will produce named html entities, which are invalid xml + // Do NOT use htmlentities, since it will produce named html entities, which are invalid xml $rs .= "<${typ}>" . Charset::instance()->encodeEntities($val, PhpXmlRpc::$xmlrpc_internalencoding, $charsetEncoding) . ""; break; case static::$xmlrpcInt: diff --git a/src/Wrapper.php b/src/Wrapper.php index bcdd5efe..81146226 100644 --- a/src/Wrapper.php +++ b/src/Wrapper.php @@ -1,7 +1,7 @@ - + diff --git a/tests/benchmark.php b/tests/benchmark.php index 0ca9e28a..7150d901 100644 --- a/tests/benchmark.php +++ b/tests/benchmark.php @@ -3,7 +3,7 @@ * Benchmarking suite for the PHP-XMLRPC lib. * * @author Gaetano Giunta - * @copyright (c) 2005-2015 G. Giunta + * @copyright (c) 2005-2019 G. Giunta * @license code licensed under the BSD License: see file license.txt * * @todo add a test for response ok in call testing diff --git a/tests/parse_args.php b/tests/parse_args.php index d6632abf..79c95d46 100644 --- a/tests/parse_args.php +++ b/tests/parse_args.php @@ -14,7 +14,7 @@ * @param int HTTPSVERIFYHOST * @param int SSLVERSION * - * @copyright (C) 2007-2017 G. Giunta + * @copyright (C) 2007-2019 G. Giunta * @license code licensed under the BSD License: see file license.txt **/ class argParser diff --git a/tests/phpunit_coverage.php b/tests/phpunit_coverage.php index ae7b998b..35ae9167 100644 --- a/tests/phpunit_coverage.php +++ b/tests/phpunit_coverage.php @@ -2,7 +2,7 @@ /** * Used to serve back the server-side code coverage results to phpunit-selenium * - * @copyright (C) 2007-2015 G. Giunta + * @copyright (C) 2007-2019 G. Giunta * @license code licensed under the BSD License: see file license.txt **/ diff --git a/tests/verify_compat.php b/tests/verify_compat.php index 1d9f90cf..67d26cea 100644 --- a/tests/verify_compat.php +++ b/tests/verify_compat.php @@ -3,7 +3,7 @@ * Verify compatibility level of current php install with php-xmlrpc lib. * * @author Gaetano Giunta - * @copyright (C) 2006-2015 G. Giunta + * @copyright (C) 2006-2019 G. Giunta * @license code licensed under the BSD License: see file license.txt * * @todo add a test for php output buffering? -- 2.47.0