There are two problems here:
1) First you need to look for the location of the DLL files correctly. dll files should be placed as shown below:
C:\PHP5\pthreadVC2.dll C:\PHP5\ext\php_pthreads.dll
and in the php.ini file only php_pthreads.dll should be included as
extension=php_pthreads.dll
2) It is necessary to search for PHP Versions and DLL files.
My PHP is VC6 build and the dll file is VC9. This is why the module did not install. I recognized this difference using " php -m ".
Since there is no VC6 assembly in the DLL file, I used the PHP VC9 assembly and used pthreads, and the program works fine.
Note. The above two solutions solved my problems. But if you still get errors, check if xdebug or zend debuggers are enabled. Unplug them and try again.
source share