浏览代码

Add support for lib-zip platform package

Jordi Boggiano 5 年之前
父节点
当前提交
ef249ef6b6
共有 1 个文件被更改,包括 7 次插入0 次删除
  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;