Browse Source

Add support for lib-zip platform package

Jordi Boggiano 5 years ago
parent
commit
ef249ef6b6
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/Composer/Repository/PlatformRepository.php

+ 7 - 0
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;