I need ZTS to be enabled in php. So I recompiled php from source with '--enable-maintainer-zts' option. Now I have:
"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
Now I am trying to do
"sudo pecl install pthreads" which answers me
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
Please, help me. What's wrong?
CentOS 7.