Enable ZTS on PHP without compiling

爷,独闯天下 提交于 2021-01-27 06:41:32

问题


When I try to install pthreads with PECL, the installation says that I must enable ZTS:

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

I've installed PHP with Apt package manager and I don't want to have to replace that install with a self-compiled version.

How can I enable ZTS without manual compiling?


回答1:


You cannot; Zend Thread Safety is a compile time, only, option.

Either find a thread safe package being maintained by someone else, or build yourself.



来源:https://stackoverflow.com/questions/24559008/enable-zts-on-php-without-compiling

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!