docs
authorgggeek <giunta.gaetano@gmail.com>
Mon, 29 Jul 2019 13:35:21 +0000 (13:35 +0000)
committergggeek <giunta.gaetano@gmail.com>
Mon, 29 Jul 2019 13:35:21 +0000 (13:35 +0000)
19 files changed:
.travis.yml
INSTALL.md
NEWS
debugger/action.php
debugger/common.php
debugger/controller.php
demo/server/proxy.php
pakefile.php
src/Client.php
src/Encoder.php
src/Response.php
src/Server.php
src/Value.php
src/Wrapper.php
tests/1ParsingBugsTest.php
tests/benchmark.php
tests/parse_args.php
tests/phpunit_coverage.php
tests/verify_compat.php

index 2414a14..673d0ba 100644 (file)
@@ -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:
index d1dd2eb..8595c3a 100644 (file)
@@ -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 11c8283..e119c32 100644 (file)
--- 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
index 0d0a649..2748b69 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * @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 switch params for http compression from 0,1,2 to values to be used directly
index 4026d60..d1bb28c 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * @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
  *
  * Parses GET/POST variables
index 2fd4307..e0540d3 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * @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 links to documentation from every option caption
index 6e791f4..7f4d16c 100644 (file)
@@ -5,7 +5,7 @@
  * the originating server).
  *
  * @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
  */
 
index 4bca828..d153a98 100644 (file)
@@ -3,7 +3,7 @@
  * Makefile for phpxmlrpc library.
  * To be used with the Pake tool: https://github.com/indeyets/pake/wiki
  *
- * @copyright (c) 2015 G. Giunta
+ * @copyright (c) 2015 - 2019 G. Giunta
  *
  * @todo !important allow user to specify location of docbook xslt instead of the one installed via composer
  */
index 074c196..af3ffac 100644 (file)
@@ -806,8 +806,8 @@ class Client
             return $r;
         }
 
-        // G. Giunta 2005/10/24: close socket before parsing.
-        // should yield slightly better execution times, and make easier recursive calls (e.g. to follow http redirects)
+        // Close socket before parsing.
+        // It should yield slightly better execution times, and make easier recursive calls (e.g. to follow http redirects)
         $ipd = '';
         do {
             // shall we check for $data === FALSE?
index ab413f4..c391897 100644 (file)
@@ -149,12 +149,10 @@ class Encoder
             case 'double':
                 $xmlrpcVal = new Value($phpVal, Value::$xmlrpcDouble);
                 break;
-            // <G_Giunta_2001-02-29>
             // Add support for encoding/decoding of booleans, since they are supported in PHP
             case 'boolean':
                 $xmlrpcVal = new Value($phpVal, Value::$xmlrpcBoolean);
                 break;
-            // </G_Giunta_2001-02-29>
             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
index 48ebca8..9884acc 100644 (file)
@@ -127,8 +127,7 @@ class Response
             $result = "<methodResponse>\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 .= "<fault>\n" .
                 "<value>\n<struct><member><name>faultCode</name>\n<value><int>" . $this->errno .
                 "</int></value>\n</member>\n<member>\n<name>faultString</name>\n<value><string>" .
index 37505f8..6921b7e 100644 (file)
@@ -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);
         }
index f51579b..65ea64c 100644 (file)
@@ -246,8 +246,7 @@ class Value implements \Countable, \IteratorAggregate, \ArrayAccess
                         $rs .= "<${typ}>" . ($val ? '1' : '0') . "</${typ}>";
                         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) . "</${typ}>";
                         break;
                     case static::$xmlrpcInt:
index bcdd5ef..8114622 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * @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
  */
 
index bfa79e7..d8f5779 100644 (file)
@@ -76,8 +76,7 @@ class ParsingBugsTests extends PHPUnit_Framework_TestCase
         $response = utf8_encode(
             '<?xml version="1.0"?>
 <!-- $Id -->
-<!-- found by G. giunta, covers what happens when lib receives
-  UTF8 chars in response text and comments -->
+<!-- found by G. Giunta, covers what happens when lib receives UTF8 chars in response text and comments -->
 <!-- ' . chr(224) . chr(252) . chr(232) . '&#224;&#252;&#232; -->
 <methodResponse>
 <fault>
index 0ca9e28..7150d90 100644 (file)
@@ -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
index d6632ab..79c95d4 100644 (file)
@@ -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
index ae7b998..35ae916 100644 (file)
@@ -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
  **/
 
index 1d9f90c..67d26ce 100644 (file)
@@ -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?