From b32aad84394dbccef87c0aa114320a7d97873abc Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sun, 24 Jan 2016 19:10:11 +0000 Subject: [PATCH] Do not set TLS options on local URLs --- 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 afb942850..09ab6188a 100644 --- a/src/Composer/Util/RemoteFilesystem.php +++ b/src/Composer/Util/RemoteFilesystem.php @@ -560,7 +560,7 @@ class RemoteFilesystem $tlsOptions = array(); // Setup remaining TLS options - the matching may need monitoring, esp. www vs none in CN - if ($this->disableTls === false && PHP_VERSION_ID < 50600) { + if ($this->disableTls === false && PHP_VERSION_ID < 50600 && !stream_is_local($this->fileUrl)) { $host = parse_url($this->fileUrl, PHP_URL_HOST); if ($host === 'github.com' || $host === 'api.github.com') {