From 72fae0bf70d2d7a85b33681e026015dda77a7bf2 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 16 Jan 2016 16:28:04 +0000 Subject: [PATCH] Declare CN_match/SNI_server_name only for php <5.6 --- src/Composer/Util/RemoteFilesystem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/RemoteFilesystem.php b/src/Composer/Util/RemoteFilesystem.php index 012af1e58..7d1e36736 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -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 {