<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'zip.installation.php',
    1 => 'Installation',
    2 => 'Installation',
  ),
  'up' => 
  array (
    0 => 'zip.setup.php',
    1 => 'Installing/Configuring',
  ),
  'prev' => 
  array (
    0 => 'zip.requirements.php',
    1 => 'Requirements',
  ),
  'next' => 
  array (
    0 => 'zip.resources.php',
    1 => 'Resource Types',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    '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">Installation</h2>

 <div class="section" id="zip.installation.linux">
  <h2 class="title">Linux systems</h2>
  <p class="para">
   In order to use these functions PHP must be compiled with ZIP support
   by using the <strong class="option configure">--with-zip</strong>
   configure option.
  </p>
  <p class="para">
   Prior to PHP 7.4.0, libzip was bundled with PHP,
   and to compile the extension one needed to use the
   <strong class="option configure">--enable-zip</strong>
   configure option.
   Building against the bundled libzip was discouraged as of PHP 7.3.0,
   but still possible by using the
   <strong class="option configure">--without-libzip</strong>
   configure option.
  </p>
  <p class="para">
   A <strong class="option configure">--with-libzip=DIR</strong>
   configure option has been added to use a system libzip installation. libzip
   version 0.11 is required, with 0.11.2 or later recommended.
  </p>
 </div>
  
 <div class="section" id="zip.installation.new.windows">
  <h2 class="title">Windows</h2>
  <p class="para">
   As of PHP 8.2.0, <var class="filename">php_zip.dll</var> DLL must be
   <a href="install.pecl.windows.php#install.pecl.windows.loading" class="link">enabled</a> in
   <var class="filename">php.ini</var>.
   Previously, this extension was built-in.
  </p>
 </div>

 <div class="section" id="zip.installation.pecl">
  <h2 class="title">Installation via PECL</h2>
  <p class="para">
   Information for installing this PECL extension may be
found in the manual chapter titled <a href="install.pecl.php" class="link">Installation
of PECL extensions</a>. Additional information such as new releases,
downloads, source files, maintainer information, and a CHANGELOG, can be
located here: 
   <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); ?>