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

contributors($setup);

?>
<div id="mbstring.installation" class="section">
  <h2 class="title">安装</h2>
  <p class="para">
   <code class="literal">mbstring</code> 不是一个默认扩展。这意味着它默认没有被激活。
   你必须在 <code class="literal">configure</code> 选项中显式激活该模块。
   详情参见<a href="install.php" class="link">安装</a>这一节。
  </p>
  <p class="simpara">
   以下是涉及到 <code class="literal">mbstring</code> 的相关配置选项。
  </p>
  <p class="para">
   <ul class="itemizedlist">
    <li class="listitem">
     <p class="para">
      <strong class="option configure">--enable-mbstring</strong>：激活 <code class="literal">mbstring</code> 函数。
      要使用 <code class="literal">mbstring</code> 函数必须启用这个选项。
     </p>
     <p class="para">
      <span class="productname">libmbfl</span> 对 <code class="literal">mbstring</code>
      是必要的。<span class="productname">libmbfl</span> 被捆绑到了
      <code class="literal">mbstring</code>。在 PHP 7.3.0 之前，如果系统已安装
      <span class="productname">libmbfl</span>，<strong class="option configure">--with-libmbfl[=DIR]</strong>
      可以指定使用已安装的库。
     </p>
    </li>
    <li class="listitem">
     <p class="para">
      <strong class="option configure">--disable-mbregex</strong>：禁用正则表达式函数中多字节字符的支持。
     </p>
     <p class="para">
      <span class="productname">Oniguruma</span> 对于支持多字节字符的正则表达式函数是必需的。自 PHP 7.4.0
      起，pkg-config 用于检测 libonig 库。在 PHP 7.4.0 之前，<span class="productname">Oniguruma</span>
      与 <code class="literal">mbstring</code> 捆绑，但可以通过传递 <strong class="option configure">--with-onig[=DIR]</strong>
      来对已安装的 libonig 库进行构建。
     </p>
     <p class="para">
      可以通过指定 <strong class="option configure">--disable-mbregex-backtrack</strong>
      来禁用多字节正则表达式回溯检查。
     </p>
    </li>
   </ul>
  </p>
</div><?php manual_footer($setup); ?>