From acae5788dae00df24cae8aeae42570f3c1a9f9a5 Mon Sep 17 00:00:00 2001 From: gggeek Date: Thu, 9 Feb 2023 11:09:16 +0000 Subject: [PATCH] test fixes --- tests/09HTTPTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/09HTTPTest.php b/tests/09HTTPTest.php index 93da0513..b3db7df7 100644 --- a/tests/09HTTPTest.php +++ b/tests/09HTTPTest.php @@ -340,16 +340,17 @@ class HTTPTest extends ServerTest $this->client->setSSLVerifyHost($this->args['HTTPSVERIFYHOST']); $this->client->setUseCurl(\PhpXmlRpc\Client::USE_CURL_NEVER); $this->client->setSSLVersion($this->args['SSLVERSION']); - if (version_compare(PHP_VERSION, '8.0', '>=')) + if (version_compare(PHP_VERSION, '8.0', '>')) { $version = explode('.', PHP_VERSION); $this->client->setOption(\PhpXmlRpc\Client::OPT_EXTRA_SOCKET_OPTS, array('ssl' => array('security_level' => 2 + $version[1]))); + /// @todo we should probably look deeper into the Apache config / ssl version in use to find out why this + /// does not work well with TLS < 1.2 if ($this->args['SSLVERSION'] == 0) { - $this->client->setSSLVersion(4 + $version[1]); + $this->client->setSSLVersion(5 + $version[1]); } } - $this->$method(); } -- 2.47.0