1
0
Fork 0

Fix for PearRepository scheme handling, broke ChannelReaderTest.

pull/1353/head
Raphael Kallensee 2012-11-23 18:35:22 +01:00
parent 0be2fd12e4
commit 9713bf8bec
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class PearRepository extends ArrayRepository
// distribution url must be read from /r/{packageName}/{version}.xml::/r/g:text()
// but this location is 'de-facto' standard
$urlBits = parse_url($this->url);
$scheme = ('https' === $urlBits['scheme'] && extension_loaded('openssl')) ? 'https' : 'http';
$scheme = (isset($urlBits['scheme']) && 'https' === $urlBits['scheme'] && extension_loaded('openssl')) ? 'https' : 'http';
$distUrl = "{$scheme}://{$packageDefinition->getChannelName()}/get/{$packageDefinition->getPackageName()}-{$version}.tgz";
$requires = array();