From b350dda0fe4a8b1d0f822d691e28d52e84cf89ee Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 15 Nov 2011 11:29:25 +0100 Subject: [PATCH] Skip GitHub driver if openssl is disabled --- src/Composer/Repository/Vcs/GitHubDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/GitHubDriver.php b/src/Composer/Repository/Vcs/GitHubDriver.php index 44d47cdb6..44227ef91 100644 --- a/src/Composer/Repository/Vcs/GitHubDriver.php +++ b/src/Composer/Repository/Vcs/GitHubDriver.php @@ -146,6 +146,6 @@ class GitHubDriver implements VcsDriverInterface */ public static function supports($url, $deep = false) { - return preg_match('#^(?:https?|git)://github\.com/([^/]+)/(.+?)(?:\.git)?$#', $url, $match); + return extension_loaded('openssl') && preg_match('#^(?:https?|git)://github\.com/([^/]+)/(.+?)(?:\.git)?$#', $url, $match); } }