How to compile PHP 7.1 with ZTS
问题 I see on the github PThread project page that php7+ is supported. I have php7.1.6 on an ubuntu distribution (16.04) I can't find any PPA that offer php7.1-zts. How can i enable zts on php7.1 to install pthreads ? 回答1: This is my setup script #!/bin/bash mkdir -p /etc/php7 mkdir -p /etc/php7/cli git clone https://github.com/php/php-src.git -b PHP-7.0.17 --depth=1 cd php-src/ext git clone https://github.com/krakjoe/pthreads -b master pthreads cd .. ./buildconf --force ./configure --prefix=/etc