From 314870f85db11b0498b3b4cbb143a544aafd929e Mon Sep 17 00:00:00 2001 From: gggeek Date: Fri, 25 Nov 2022 11:09:25 +0000 Subject: [PATCH] docs and comments --- NEWS | 6 +++++- demo/client/_prepend.php | 2 +- tests/ci/setup/setup_php.sh | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 7b1831a7..6f7070d4 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,9 @@ XML-RPC for PHP version xxx - unreleased +* fixed: a php warning on php 8 when parsing responses which do not have a Content-Type header + +* fixed: added a missing html-escaping call in demo file `introspect.php` + * fixed: decoding of responses with latin-1 charset declared in the xml prolog but not in http headers, when on php 5.4, 5.5 * fixed: DateTimeInterface is not present in php 5.4 (error introduced in ver. 4.8.1) @@ -8,7 +12,7 @@ XML-RPC for PHP version xxx - unreleased overriding the integer value of `PhpXmlRpc::$xmlrpcerr['invalid_xml']`, `PhpXmlRpc::$xmlrpcerr['xml_not_compliant']`, `PhpXmlRpc::$xmlrpcerr['xml_parsing_error']` and the equivalent `PhpXmlRpc::$xmlrpcstr` strings. Feature req. #101 -* improved: CI tests now run on php versions 5.4, 5.5 besides all more recent ones +* improved: CI tests now run on php versions 5.4 and 5.5, besides all more recent ones * improved: the test container for local testing now defaults to php 7.4 on ubuntu 20 focal diff --git a/demo/client/_prepend.php b/demo/client/_prepend.php index d3b40319..c29d7ec2 100644 --- a/demo/client/_prepend.php +++ b/demo/client/_prepend.php @@ -36,7 +36,7 @@ if (isset($_COOKIE['PHPUNIT_SELENIUM_TEST_ID']) && extension_loaded('xdebug')) { include_once __DIR__ . "/../../vendor/phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumCommon/prepend.php"; } -// A helper for cli vs we output: +// A helper for cli vs web output: function output($text) { echo PHP_SAPI == 'cli' ? strip_tags(str_replace('
', "\n", $text)) : $text; diff --git a/tests/ci/setup/setup_php.sh b/tests/ci/setup/setup_php.sh index f7e1415f..06c2ebe9 100755 --- a/tests/ci/setup/setup_php.sh +++ b/tests/ci/setup/setup_php.sh @@ -30,6 +30,8 @@ configure_php_ini() { PHP_VERSION="$1" DEBIAN_VERSION="$(lsb_release -s -c)" +# @todo use native packages if requested for a specific version and that is the same as available in the os repos + if [ "${PHP_VERSION}" = default ]; then echo "Using native PHP packages..." -- 2.47.0