Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Can not enable extension pthreads on PHP 7.2.15 Windows 10 Enterprise (x64) #933

Open
BigPino67 opened this issue Mar 12, 2019 · 3 comments

Comments

@BigPino67
Copy link

BigPino67 commented Mar 12, 2019

Environment

  • PHP: 7.2.15
  • pthreads: 3.2.0
  • OS: Windows 10 Enterprise x64

Summary

Can not succesfully load/use the pthreads extenstion on Windows 10 Enterprise x64 using PHP v7.2.15

Reproducing Code

I've done the following

  • Downloaded the latest release from github Windows links
  • added the pthreads.dll to the /php/ext folder and rename to php_pthreads-3.1.6-7.2-ts-vc15-x64.dll
  • added the pthreadVC2.dll to the /php/ folder
  • enabled the extension in the php.ini file

Expected Output

A working pthreads extension!

Actual Output

PHP error log :
[12-Mar-2019 17:53:22 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'pthreads-3.1.6-7.2-ts-vc15-x64' (tried: C:\App\XAMPP\php\ext\pthreads-3.2.0-7.2-ts-vc15-x64 (The specified module could not be found.), C:\App\XAMPP\php\ext\php_pthreads-3.2.0-7.2-ts-vc15-x64.dll (The specified module could not be found.)) in Unknown on line 0

@ewwink
Copy link

ewwink commented Mar 24, 2019

You got v3.2.0 but renamed tophp_pthreads-3.1.6-7.2-ts-vc15-x64.dll? try rename pthreads.dll to php_pthreads-3.2.0-7.2-ts-vc15-x64.dll

@dreams-money
Copy link

@BigPino67 where did you find the vc15 release?

@BigPino67
Copy link
Author

@cesar-v I've find an online compiler link somewhere in the Wiki or in another issue. I don't really remember, sorry.

I've been able to make it works with CLI.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants