diff --git a/src/Composer/Repository/PlatformRepository.php b/src/Composer/Repository/PlatformRepository.php index 360671c7e..84f3d4b66 100644 --- a/src/Composer/Repository/PlatformRepository.php +++ b/src/Composer/Repository/PlatformRepository.php @@ -221,6 +221,13 @@ class PlatformRepository extends ArrayRepository $prettyVersion = LIBXSLT_DOTTED_VERSION; break; + case 'zip': + if (defined('ZipArchive::LIBZIP_VERSION')) { + $prettyVersion = \ZipArchive::LIBZIP_VERSION; + } else { + continue 2; + } + default: // None handled extensions have no special cases, skip continue 2;