From ef249ef6b63310fe1d6ea2bdb002a6c50e64021b Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 11 Feb 2020 11:01:20 +0100 Subject: [PATCH] Add support for lib-zip platform package --- src/Composer/Repository/PlatformRepository.php | 7 +++++++ 1 file changed, 7 insertions(+) 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;