问题描述
我使用的一些软件要求我禁用线程安全.我在 Windows 服务器上工作.从我在别处读到的,我不能只在 .ini 文件中配置它.这是真的?如果是这样,我将如何编译它以关闭线程安全?
I am using some software that requires me to have thread safety disabled. I am working on a Windows server. From what I've read elsewhere, I can't just configure this in the .ini file. Is this true? If so, how would I compile it so that thread safety is turned off?
推荐答案
您必须在禁用 ZTS 的情况下编译 PHP(编译标志 --disable-zts
)或 下载二进制文件 禁用 ZTS.
You have to compile PHP with ZTS disabled (compile flag --disable-zts
) or download binaries with ZTS disabled.
这在某些 Web 服务器中无法正常工作,即在同一进程中同时处理多个 PHP 脚本的那些.
This won't work properly in some webservers, namely those which process several PHP scripts simultaneously in the same process.
这篇关于如何在 PHP 中禁用线程安全?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!