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

contributors($setup);

?>
<div id="pthreads.requirements" class="section">
  <h2 class="title">需求</h2>
  <p class="simpara">
   要使用 pthreads 扩展，需要构建 PHP 时启用 ZTS（Zend 线程安全）（<strong class="option configure">--enable-zts</strong> 或在
   PHP 8.0 之前的非 Windows 平台为 <strong class="option configure">--enable-maintainer-zts</strong>）。
  </p>
  <div class="caution"><strong class="caution">警告</strong>
  <p class="simpara">
   ZTS 是构建期配置选项，只能通过构建时通过选项启用，无法在构建之后启用。
  </p>
  </div>
  <p class="simpara">
   要构建 pthreads 扩展，你需要启用了 ZTS 的 PHP 以及 Posix Threads 头文件（pthread.h）。对于 Windows 平台，需要使用 redhat 的 pthread-w32 项目中的 pthread.h 头文件。
  </p>
 </div><?php manual_footer($setup); ?>