mirror of
https://github.com/composer/composer
synced 2025-05-08 16:17:37 +00:00
Declare CN_match/SNI_server_name only for php <5.6
This commit is contained in:
parent
449f68deae
commit
72fae0bf70
1 changed files with 1 additions and 1 deletions
|
@ -477,7 +477,7 @@ class RemoteFilesystem
|
|||
$tlsOptions = array();
|
||||
|
||||
// Setup remaining TLS options - the matching may need monitoring, esp. www vs none in CN
|
||||
if ($this->disableTls === false) {
|
||||
if ($this->disableTls === false && PHP_VERSION_ID < 50600) {
|
||||
if (!preg_match('{^https?://}', $this->fileUrl)) {
|
||||
$host = $originUrl;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue