Not able to install pThread on Windows Xampp

前端 未结 3 1308
自闭症患者
自闭症患者 2021-02-15 23:15

Update: Looks like I am not doing anything wrong here. When I execute a thread example, it works fine. I am not sure, then why am I getting those errors when I start Apache.

3条回答
  •  广开言路
    2021-02-16 00:07

    Here is what I did and works for me:

    1. Check your PHP's compiler version using phpinfo() as you have already done. Mine and your both is VC9
    2. Download and install proper Pthread package that matches your compiler version. I downloaded "php_pthreads-0.0.45-5.4-ts-vc9-x86.zip" file. Make sure your OS version also mathes (32-bit or 64-bit).
    3. Extract Zip file in a temp folder
    4. Copy php_pthreads.dll to the 'bin\php\ext\' folder
    5. Copy pthreadVC2.dll to the 'bin\php\' folder
    6. Copy pthreadVC2.dll to the 'bin\apache\bin' folder
    7. Copy pthreadVC2.dll to the 'C:\windows\system32' folder
    8. Open php\php.ini and add "extension=php_pthreads.dll" without quotes at the end of file
    9. Restart server and you won't get any error message.

    Good luck

提交回复
热议问题