X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=php%2Fphpxmlrpc%2Fsrc%2FClient.php;h=818427329f480c02541f54d459d180b08d75b2b0;hb=b5780972105512f088c235b1538e6cbbb1ee1ae4;hp=cd1491c327aef00fb80e8bb8a1fcd090327eccfe;hpb=bc7bd41556e1fd137acf4df415e5dc0f6d5e02c4;p=plcapi.git diff --git a/php/phpxmlrpc/src/Client.php b/php/phpxmlrpc/src/Client.php index cd1491c..8184273 100644 --- a/php/phpxmlrpc/src/Client.php +++ b/php/phpxmlrpc/src/Client.php @@ -1026,7 +1026,11 @@ class Client } // whether to verify cert's common name (CN); 0 for no, 1 to verify that it exists, and 2 to verify that // it matches the hostname used - curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, $this->verifyhost); + // php8 no longer supports 1 + $verifyhost = $this->verifyhost; + if ($verifyhost === 1) + $verifyhost = 2; + curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, $verifyhost); // allow usage of different SSL versions curl_setopt($curl, CURLOPT_SSLVERSION, $sslVersion); }