怎么区分php是非线程安全

1、通过phpinfo(); 查看其中的 Thread Safety 项,这个项目就是查看是否是线程安全,如果是:enabled,一般来说应该是ts版,否则是nts版。

2、命令行:php -i|grep -i thread

结果:Thread Safety => disabled 【disabled表示非线程安全】

本页目录