<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/libxml.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'libxml.installation_old.php',
    1 => 'Installation for PHP versions &lt; 7.4',
    2 => 'Installation for PHP versions &lt; 7.4',
  ),
  'up' => 
  array (
    0 => 'libxml.setup.php',
    1 => '安装/配置',
  ),
  'prev' => 
  array (
    0 => 'libxml.installation.php',
    1 => 'Installation for PHP versions &gt;= 7.4',
  ),
  'next' => 
  array (
    0 => 'libxml.constants.php',
    1 => '预定义常量',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/libxml/setup.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="libxml.installation_old" class="section">
  <h2 class="title">Installation for PHP versions &lt; 7.4</h2>
  <p class="para">
   The libxml extension is enabled by default, although it may be disabled with
   <strong class="option configure">--disable-libxml</strong>.
  </p>
  <p class="para">
   The optional <strong class="option configure">--with-libxml-dir</strong>
   directive is used to specify the location of <code class="literal">libxml</code>
   on the system that PHP is being compiled on, otherwise only the
   default locations are scanned. The <code class="literal">configure</code> process
   checks for libxml (specifically, <code class="literal">xml2-config</code>) in the
   following order:
  </p>
  <ol type="1">
   <li class="listitem">
    <p class="para">
     The location ([DIR]) specified with <strong class="option configure">--with-libxml-dir</strong>
     ([DIR]=<var class="filename">/bin/xml2-config</var>)
    </p>
   </li>
   <li class="listitem">
    <p class="para">
     <var class="filename">/usr/local/bin/xml2-config</var>
    </p>
   </li>
   <li class="listitem">
    <p class="para">
     <var class="filename">/usr/bin/xml2-config</var>
    </p>
   </li>
  </ol>
  <p class="para">
   If <code class="literal">configure</code> cannot find <var class="filename">xml2-config</var> in the directory
   specified by <strong class="option configure">--with-libxml-dir</strong>, then
   it&#039;ll continue on and check the default locations.
  </p>
 </div><?php manual_footer($setup); ?>