« 上一篇下一篇 »

PHP版本选择

一、TS and NTS

IIS:If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions of PHP.

Apache:With Apache you have to use the Thread Safe (TS) versions of PHP.

If you are using PHP as module with Apache builds from apache.org (not recommended) you need to use the older VC6 versions of PHP compiled with the legacy Visual Studio 6 compiler. Do NOT use VC9+ versions of PHP with the apache.org binaries.

翻译:TS是线程安全检查,用于Apache;NTS是非线程安全检查,用于IIS。

二、VC9, VC11 & VC14

More recent versions of PHP are built with VC9, VC11 or VC14 (Visual Studio 2008, 2012 or 2015 compiler respectively) and include improvements in performance and stability.

- The VC9 builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed

x86:http://www.microsoft.com/en-us/download/details.aspx?id=5582

x64:http://www.microsoft.com/en-us/download/details.aspx?id=15336

- The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed

x86_x64:http://www.microsoft.com/en-us/download/details.aspx?id=30679

- The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed

x86_x64:http://www.microsoft.com/en-us/download/details.aspx?id=48145

翻译:VC6使用visual studio6编译,VC9使用Visual Studio 2008编译,VC11使用Visual Studio 2012编译,VC11使用Visual Studio 2015编译。下载不同版本的PHP需要同时安装对应版本的Microsoft Visual C++ Redistributable Package。