我需要在 php 中启用 ZTS。所以我用'--enable-maintainer-zts'选项从源代码重新编译了php。现在我有:
“php -v”
PHP 7.0.11 (cli) (built: Oct 3 2016 12:19:10) ( ZTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
“php -i”
Thread Safety => enabled
现在我正在尝试做
“sudo pecl install pthreads”来回答我
checking whether to enable pthreads... yes, shared
checking whether to enable AddressSanitizer for pthreads... no
checking whether to enable dmalloc for pthreads... no
checking for ZTS... configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled
ERROR: `/var/tmp/pthreads/configure --with-php-config=/usr/bin/php-config' failed
请帮我。怎么了?
中央操作系统 7。