PHP Thread Safe和Non Thread Safe版本如何选择

zhangzhijun 1次浏览 0个评论

在php.net下载php版本时,会发现有多个版本供选择,除了x86和x64之外,还有Thread safeNon 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.

版权申明:

本博客所有文章除特别声明外均采用 BY-NC-SA 4.0 许可协议。依据 BY-NC-SA 4.0 许可协议,转载请附上原文出处链接及本声明。

原文链接: https://zhangzhijun.life/index.php/php-thread-safehenon-thread-safebanbenruhexuanze.html

Default Avatar

评论

此字段内容将保密,不会被其他人看见。