test fixes
authorgggeek <giunta.gaetano@gmail.com>
Thu, 9 Feb 2023 11:09:16 +0000 (11:09 +0000)
committergggeek <giunta.gaetano@gmail.com>
Thu, 9 Feb 2023 11:09:16 +0000 (11:09 +0000)
tests/09HTTPTest.php

index 93da051..b3db7df 100644 (file)
@@ -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();
     }