通过CLI执行的PHP pthreads示例在IIS7上正常工作,而不是通过WEB

I have followed these steps:

  1. Installed php-5.4.25-Win32-VC9-x86 thread safe version
  2. 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

  3. Checked phpinfo() it results in Thread safety enabled and pthreads version 0.38-rc

  4. 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.

  5. I tried to run same example of thread through browser but it showed 500 internal server error.