首页 > 技术文章 > Thread Safety

lichihua 2019-02-25 22:09 原文

如何查看php是thread-safe 线程安全还是non-thread-safe 非线程安全?

通过phpinfo()查看,打印出php版本信息,查找Thread Safety选项。
Thread Safety:如果是enable,则是Thread Safe(线程安全)版本;否则,就是None Thread Safe(非线程安全)版本。

推荐阅读