Multi Threading Extension
suggest changeRemarks
pthreads v3 loads only in the CLI SAPI, and only in a ZTS (thread-safe) build. Keep extension=pthreads.so in php-cli.ini, not in the web SAPI ini. The 3.x line targets PHP 7.
If you are using Wamp on Windows, you have to configure the extension in php.ini :
Open php\php.ini and add:
extension=php_pthreads.dll
Concerning Linux users, you have to replace .dll by .so:
extension=pthreads.so
This appends the directive every time it runs. Change /etc/php.ini to the CLI ini path:
echo "extension=pthreads.so" >> /etc/php.ini
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents