<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/zip.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'zip.installation.php',
    1 => '安装',
    2 => '安装',
  ),
  'up' => 
  array (
    0 => 'zip.setup.php',
    1 => '安装/配置',
  ),
  'prev' => 
  array (
    0 => 'zip.requirements.php',
    1 => '需求',
  ),
  'next' => 
  array (
    0 => 'zip.resources.php',
    1 => '资源类型',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/zip/configure.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="zip.installation" class="section">
 <h2 class="title">安装</h2>
 
 <div class="section" id="zip.installation.linux">
  <h2 class="title">Linux 系统</h2>
  <p class="para">
   必须在编译 PHP 时用 <strong class="option configure">--with-zip</strong>
   配置选项来提供 zip 支持来使用这些方法。
  </p>
  <p class="para">   
   PHP 7.4.0 之前，PHP 捆绑了 libzip，编译扩展需要使用
   <strong class="option configure">--enable-zip</strong> 配置项。从 PHP 7.3.0 开始, 不鼓励使用捆绑的 libzip
   进行构建，但仍然可以使用 <strong class="option configure">--without-libzip</strong> 配置项。
  </p>
  <p class="para">
   新增 <strong class="option configure">--with-libzip=DIR</strong> 配置选项以使用系统
   libzip 安装。需要 libzip 版本 0.11，推荐使用 0.11.2 或更高版本。
  </p>
 </div>
  
 <div class="section" id="zip.installation.new.windows">
  <h2 class="title">Windows</h2>
  <p class="para">
   从 PHP 8.2.0 开始，必须在 <var class="filename">php.ini</var> 中<a href="install.pecl.windows.php#install.pecl.windows.loading" class="link">启用</a>
   <var class="filename">php_zip.dll</var> DLL。以前内置此扩展。
  </p>
 </div>
 
 <div class="section" id="zip.installation.pecl">
  <h2 class="title">通过 PECL 安装</h2>
  <p class="para">
   安装此 PECL 扩展相关的信息可在手册中标题为
<a href="install.pecl.php" class="link">PECL
扩展的安装</a>章节中找到。更多信息如新的发行版本、下载、源文件、
维护人员信息及变更日志等，都在此处：
   <a href="https://pecl.php.net/package/zip" class="link external">&raquo;&nbsp;https://pecl.php.net/package/zip</a>.
  </p>
 </div>
 
</div><?php manual_footer($setup); ?>