PHP real multi-thread pthreads installation
Pthreads only supports php5.3 and later thread-safe versions. View through phpinfo () method
1 http://windows.php.net/downloads/pecl/releases/pthreads/
Depending on the specific PHP installation environment, I chose:
Php_pthreads-2.0.9-5.6-ts-vc11-x64.zip
2.0.9 indicates the pthreads version, 5.6 indicates the php version, ts indicates the thread security version (with apache), vc11 indicates the VC version of the compiler, and x64 indicates the 64bit version of the target operating system.
2. copy php_pthreads.dll to the directory bin \ php \ ext \
Copy pthreadVC2.dll to the php installation root directory.
Copy pthreadVC2.dll to the system32 directory.
Open php. ini and add extended extension = php_pthreads.dll.
Restart apache
3pthreads example http://docs.php.net/manual/en/book.pthreads.php