在php.net下载php版本时,会发现有多个版本供选择,除了x86和x64之外,还有Thread safe和Non Thread Safe的版本选择。很多人一看就懵了,不知道该如何选择。
其实在官网版本选择的左侧就有明确的版本选择说明,供大家参考。如果是使用IIS作为web server的话,就选择Non Thread safe的版本,如果是使用Apache作为web server的话,就使用Thread Safe的版本。
官网描述如下:
IIS
If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions of PHP.
Apache
Please use the Apache builds provided by Apache Lounge. They provide VC15 and VS16 builds of Apache for x86 and x64. We use their binaries to build the Apache SAPIs.
With Apache, using the apache2handler SAPI, you have to use the Thread Safe (TS) versions of PHP.