问题
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