http://php.net/manual/ru/book.pthreads.php

Everyone writes that it is very simple, but in fact it turns out a little more complicated.

How to recompile (recompile) php, and then (if I understand correctly) put it into the system. And it turns out you need to remove all php- * similar parts from the system.

Is there a php package ready for installation with pthreads?

  • one
    It turns out before you need to remove all php- * similar parts from the system. - why, just put it in / opt - etki

1 answer 1

Try this:

pecl install pthreads-1.0.0 

If you get this error:

 checking for ZTS... configure: error: pthreads requires ZTS, please re-compile PHP with ZTS enabled 

Then you need to install PHP with ZTS from any suitable PPA with your version of PHP (the version is not listed in the question)