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:
* 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
-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
<?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
<?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
<?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
* 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
*/
* 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
*/
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?
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
$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>" .
$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);
}
$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:
<?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
*/
$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) . 'àüè -->
<methodResponse>
<fault>
* 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
* @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
/**
* 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
**/
* 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?