krakjoe/pthreads

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

BigPino67 opened this issue · 3 comments

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

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

@BigPino67 where did you find the vc15 release?

@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.