I have followed these steps:
- Installed php-5.4.25-Win32-VC9-x86 thread safe version
-
Downloaded pthreads-0.38-php-5.4 and:
•Added pthreadVC2.dll (included with the Windows releases) to the same directory as php.exe eg.C:\php
•Added php_pthreads.dll to PHP extention folder eg. C:\php\ext
•Added extension=php_pthreads.dll in C:\php\php.ini
Checked phpinfo() it results in Thread safety enabled and pthreads version 0.38-rc
When executed the sample thread script through command line interface on windowsNT IIS7 2008 R2 c:\php>php.exe -f c:\somedir\filetest.php it runs succesfully and i get the result.
I tried to run same example of thread through browser but it showed 500 internal server error.