<?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 => 'ja',
  ),
  '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' => 'ja',
    '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">
   これらの関数を利用するには、設定オプション
   <strong class="option configure">--with-zip</strong> を使用して
   ZIP サポートを有効にして PHP をコンパイルしなければなりません。
  </p>
  <p class="para">
   PHP 7.4.0 より前のバージョンでは、libzip は PHP にバンドルされていました。
   拡張モジュールをコンパイルするには、<strong class="option configure">--enable-zip</strong>
   オプションを使う必要がありました。
   PHP 7.3.0 以降では、バンドルされている libzip を使って
   PHP をビルドすることは推奨されなくなりました。
   しかし、<strong class="option configure">--without-libzip</strong> オプションを
   configure オプションに追加することで
   バンドルされている libzip を使えていました。
  </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_zip.dll</var> を <var class="filename">php.ini</var> で有効にする必要があります。
   それより前のバージョンでは、この拡張モジュールは標準で PHP に組み込まれていました。
  </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> という章にあります。
新規リリース・ダウンロード・ソースファイル・管理者情報・CHANGELOG
といった関連する情報については、次の場所にあります。
   <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); ?>