查找已安装的PHP是线程安全还是非线程安全? [英] Find if the installed PHP is threadsafe or nonthreadsafe?

查看:141
本文介绍了查找已安装的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

这篇关于查找已安装的PHP是线程安全还是非线程安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆