I am attempting to make use of threading within my php application, but for reasons unknown to myself I cannot seem to set php up to use pthreads.
Here are a few details FYI to help diagnose the issue:
extension=php_pthreads.dll
has been added to php.iniWhen I comment out extension=php_pthreads.dll
and load the home page I get
Fatal error: Class 'Thread' not found
But when I un-comment the line I get:
HTTP Error 500.0 - Internal Server Error C:\Program Files\PHP\v7.0.7\php-cgi.exe - The FastCGI process exited unexpectedly
What could be the reasons for those problems?
'The cgi-fcgi SAPI is not supported by pthreads'
After doing some research on the above error I found out that since PHP 7.0.0 pthreads has only been available on the command line, so the answer is to either downgrade the PHP version or disable the threading for the web server, and you can see how to do that HERE