pthreadsExtended installation Step 1, viewphpinfo()
Gets PHP The version number and the number of digits ( x86 expressed 32位 , x64 expressed 64位 ), the compiler version, the PHP configuration file loading location, and so on. As shown in the following:
2.pthreadsExtension: HTTP://WINDOWS.PHP.NET/DOWNLOADS/PECL/RELEASES/PTHREADS/3, find the corresponding version in the extension list
4.php_pthreads-2.0.9-5.5-ts-vc11-x86.zipDetailed parameters
- 2.0.9 represents the version number of Pthreads
- 5.5 represents the version number of PHP
- TS indicates that PHP is a thread-safe version
- Vc11 means that PHP is compiled for MSVC11 (Visual C + + 2012) compiler
- x86 indicates that the PHP version is 32-bit
5. Unzip the package
- Copy
php_pthreads.dll to D:\wamp\bin\php\php5.5.12\ext\ directory
- Copy
pthreadVC2.dll to D:\wamp\bin\php\php5.5.12\ directory
- Copy
pthreadVC2.dll to D:\wamp\bin\apache\apache2.4.9\bin directory
- Copy
pthreadVC2.dll to C:\windows\system32 directory
6. Openphpinfo()InLoaded Configuration FileThe specified php.ini configuration file is loaded and added at the end
extension=php_pthreads.dll
7. Restart the WAMP server
After restarting the server, you phpinfo() can see that pthreads the extension is successful, such as:
Resources
- PHP: Install-Manual | Pthreads Installation/Configuration
- Windows install PHP Real multi-threaded extension pthreads tutorial
Installation of PHP multithreaded extension pthreads under Windows