checking for ZTS... configure: error: pthreads requires ZTS, please recompile PHP with ZTS enabled

安装多线程“ pthreads”时,出现了一个这样的error错误:

checking for ZTS... configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled

翻译成中文

检查ZTS…配置:错误:Pthreads需要ZTS,请重新编译PHP ZTS启用

ZTS解决办法:

只需要在PHP编译参数基础上加上:--enable-maintainer-zts 即可!

注意:zts不能动态加载,必须PHP源码编译加载,因此:千万不要产生不需要编译PHP就能解决这个问题的错误想法。

看到大多数,都是要求重新编译PHP,如果你有更好的办法,欢迎留言交流.

赞赏码

非学,无以致疑;非问,无以广识

原文地址:https://www.cnblogs.com/lxwphp/p/15452720.html