sudo -srpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpmyum --nogp install -y --enablerepo=webtatic-testing \
php72w php72w-cli php72w-common php72w-devel \
php72w-gd php72w-intl php72w-mbstring php72w-mcrypt \
php72w-mysqlnd php72w-odbc php72w-opcache php72w-pdo \
php72w-pdo_dblib php72w-pear php72w-pgsql php72w-pspell \
php72w-soap php72w-xml php72w-xmlrpc php72w-bcmathcd /tmpgit clone https://github.com/krakjoe/pthreads.git
cd pthreads
zts-phpize
./configure --with-php-config=/usr/bin/zts-php-config
makecp modules/pthreads.so /usr/lib64/php-zts/modules/.vi /etc/php-zts.d/pthreads.iniextension=pthreads.sozts-php -i | grep -i thread/etc/php-zts.d/pthreads.ini
Thread Safety => enabled
pthreadszts-php (instead of php)Adapted from: https://io.ofbeaton.com/2015/02/pthreads-phpzts-rpms-centos/
Thanks a lot! You saved me :) @tegansnyder