yum install gcc php70w-devel git clone https://github.com/krakjoe/pthreads.git cd pthreads zts-phpize ./configure --with-php-config=/usr/bin/zts-php-config make cp modules/pthreads.so /usr/lib64/php-zts/modules/
nano /etc/php-zts.d/pthreads.ini extension=pthreads.so
Testing for Thread Safety enable
/etc/php-zts.d/pthreads.ini Should see those thing below Thread Safety => enabled pthreads
Execute server-side Script
zts-php -q ws_server.php instead of using php -q
Comment feed