array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'install.windows.requirements.php', 1 => '环境要求', ), 'up' => array ( 0 => 'install.windows.php', 1 => 'Windows 系统下的安装', ), 'prev' => array ( 0 => 'install.windows.php', 1 => 'Windows 系统下的安装', ), 'next' => array ( 0 => 'install.windows.pecl.php', 1 => 'PECL', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'install/windows/index.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
PHP 至少需要 Windows 2008/Vista。 32 位或 64 位(也就是 X86 或 X64。PHP 不能在 Windows RT/WOA/ARM上运行)。 自 PHP 7.2.0 起,不再支持 Windows 2008 和 Vista。
PHP 需要 Visual C 运行时(CRT)。许多应用程序需要它,所以它可能已经被安装。
微软的开发环境 Visual Studio 2019 包含了编译 PHP 的全部环境要求,请参阅 » https://visualstudio.microsoft.com/downloads/ 。
你需要下载 x86 版本的 CRT 来编译 x86 版本的 PHP。同理,编译 x64 版本的 PHP 需要 x64 版本的 CRT。
如果系统已经安装了 CRT,安装程序会提示你,而不会改变任何东西。
CRT 安装程序支持 /quiet 和 /norestart 命令行开关,所以你可以用脚本运行它。