<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/install.windows.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'install.windows.manual.php',
    1 => '手动安装预编译的二进制文件',
    2 => '手动安装预编译的二进制文件',
  ),
  'up' => 
  array (
    0 => 'install.windows.php',
    1 => 'Windows 系统下的安装',
  ),
  'prev' => 
  array (
    0 => 'install.windows.recommended.php',
    1 => 'Windows 系统下的推荐配置',
  ),
  'next' => 
  array (
    0 => 'install.windows.apache2.php',
    1 => '在Windows系统上安装 Apache 2.x',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'install/windows/manual.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="install.windows.manual" class="sect1">
 <h2 class="title">手动安装预编译的二进制文件</h2>

 <div class="simplesect" id="install.windows.requirements">
  <h3 class="title">安装要求</h3>
  <p class="simpara">
   PHP 仅适用于 32 位 x86 或 64 位 x64 系统，目前无法在 Windows RT 或 Windows on ARM 上运行。从
   8.3.0 版本开始，PHP 需要 Windows 8 或 Windows Server 2012。7.2.0 之后的版本需要 Windows 2008
   R2 或 Windows 7。7.2.0 之前的版本支持 Windows 2008 和 Vista。
  </p>

  <p class="simpara">
   PHP 需要 Visual C 运行时 (CRT)。许多其他应用程序也需要它，因此很可能已经安装了该运行时，但如果没有，Visual
   Studio 2022 的 Microsoft Visual C++ 可再发行程序包（Microsoft Visual C++ Redistributable for
   Visual Studio 2022）适用于所有 PHP 版本，可从 <a href="https://visualstudio.microsoft.com/downloads/#microsoft-visual-c-redistributable-for-visual-studio-2022" class="link external">&raquo;&nbsp;Microsoft 下载</a>。
  </p>

  <p class="simpara">
   必须下载 x86 CRT 才能与 PHP x86 版本一起使用，而 x64 CRT 则适用于 PHP x64 版本。如果已安装
   CRT，安装程序将显示一条消息，表明已安装且不会进行任何更改。CRT 安装程序支持 <strong class="option unknown">/quiet</strong>
   和 <strong class="option unknown">/norestart</strong> 命令行开关，因此可以编写安装脚本。
  </p>
 </div>

 <div class="simplesect">
  <h3 class="title">哪里可以下载 PHP 二进制文件</h3>
  <p class="simpara">
   Windows 版本可从 <a href="https://windows.php.net/download/" class="link external">&raquo;&nbsp;PHP Windows
   网站</a>下载。所有版本都经过优化 (<abbr class="abbrev">PGO</abbr>)，QA 和 GA 版本都经过全面测试。
  </p>
 </div>

 <div class="simplesect" id="install.windows.pecl">
  <h3 class="title">预编译的 PECL 扩展</h3>
  <p class="para">
   PECL 扩展的预编译 Windows 版本以 DLL 文件的形式分发在扩展的 PECL 页面上。
  </p>
  <p class="para">
   对于使用其他系统（如 Unix）的特定功能或依赖于在 Windows 上无效的扩展，二进制文件不可用。
  </p>
 </div>


 <div class="simplesect">
  <h3 class="title">编译类型</h3>
  <p class="para">
   PHP 编译有四种类型：
   <ul class="itemizedlist">
    <li class="listitem">
     <p class="para">Thread-Safe (TS) - 线程安全，用于单进程 web 服务器，例如带有 mod_php 的 Apache</p>
    </li>
    <li class="listitem">
     <p class="para">Non-Thread-Safe (NTS) - 非线程安全，用于 IIS 和其他 FastCGI web 服务器（使用带有 mod_fastcgi 的 Apache），并且推荐命令行脚本也用此版本</p>
    </li>
    <li class="listitem">
     <p class="para">x86 - 用于 32 位系统。</p>
    </li>
    <li class="listitem">
     <p class="para">x64 - 用于 64 位系统。</p>
    </li>
   </ul>
  </p>
 </div>
</div><?php manual_footer($setup); ?>