Installation of PHP multithreaded extension pthreads under Windows

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.