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

contributors($setup);

?>
<div id="taint.installation" class="section">
 <h2 class="title">安装</h2>

 <p class="simpara">
  安装此 PECL 扩展相关的信息可在手册中标题为
<a href="install.pecl.php" class="link">PECL
扩展的安装</a>章节中找到。更多信息如新的发行版本、下载、源文件、
维护人员信息及变更日志等，都在此处：
  <a href="https://pecl.php.net/package/taint" class="link external">&raquo;&nbsp;https://pecl.php.net/package/taint</a>.
 </p>

 <p class="simpara">
  通过 <abbr title="PHP Extension Community Library">PECL</abbr> 安装：
 </p>
 <p class="para">
  <div class="example-contents screen">
<div class="cdata"><pre>
$ pecl install taint
</pre></div>
  </div>
 </p>

 <p class="para">
  源码托管在
  <a href="https://github.com/laruence/taint" class="link external">&raquo;&nbsp;GitHub</a>
  上。如需从源码编译安装该扩展：
  <div class="example-contents screen">
<div class="cdata"><pre>
$ git clone https://github.com/laruence/taint.git
$ cd taint
$ phpize
$ ./configure
$ make
$ sudo make install
</pre></div>
  </div>
 </p>

 <p class="simpara">
  然后在 <var class="filename">php.ini</var> 中添加
  <code class="literal">extension=taint.so</code>（Windows 下为
  <code class="literal">extension=php_taint.dll</code>）启用该扩展，并将
  <a href="taint.configuration.php#ini.taint.enable" class="link">taint.enable</a> 设置为
  <code class="literal">1</code>。
 </p>

 <div class="warning"><strong class="warning">警告</strong>
  <p class="simpara">
   Taint 是开发和审计工具。不要在生产环境中启用它：
   插桩会拖慢每个请求并禁用 OPcache JIT，
   而且警告信息可能会把请求数据泄露到日志中。
  </p>
 </div>
</div><?php manual_footer($setup); ?>