查找已安装的PHP是线程安全还是非线程安全?
问题描述:
如何确定已安装的PHP版本是线程安全的还是线程安全的?
How do I find out whether the installed version of PHP is threadsafe or not thread safe?
请注意我不是在询问线程安全/非线程安全安装。我想找出当前安装的内容。
Please note that I'm not asking the difference between a threadsafe/non thread safe installation. I would like to find out what is installed currently.
答
打开phpinfo()并搜索线程安全。对于线程安全的构建,您应该找到 enable 。
Open a phpinfo() and search for the line Thread safety. For a thread-safe build you should find enable.
由 Muhammad Gelbana 你也可以使用:
- 在Windows上:
php -i | findstrThread
- On * nix:
php -i | grep Thread
- On Windows :
php -i|findstr "Thread"
- On *nix:
php -i|grep Thread