composer/composer — pull request #1353 by rkallensee (2012-11-23 17:19:39+00:00)
Title: Download PEAR packages via HTTPS scheme if PEAR channel uses HTTPS

When using PEAR channels only available via HTTPS, Composer discovers the channel correctly with HTTPS. But when downloading the packages the URL scheme was hard-coded to "http". This breaks downloading packages for HTTPS-only PEAR channels.

The fix just uses HTTPS if the PEAR channel has a HTTPS scheme and OpenSSL is available.