composer/composer — pull request #2483 by JakubOnderka (2013-12-05 20:26:20+00:00)
Title: Check exception code only if class ZipArchive exists

If is for example exception throwed when downloading tar archive on system without installed zip extension, PHP hangs on fatal error " Class 'ZipArchive' not found".