我试图在我的 php 代码中使用线程,但我无法理解 pthreads库,每次运行程序时都会遇到此错误:
Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_pthreads.dll' - The specified module could not be found.in Unknown on line 0
我遵循了所需的每一步:
I've added the file pthreadVC2.dll in my "C:\php" folder
I've added the file php_pthreads.dll in my "C:\php\ext"folder
I've modified the file php.ini, enabling the extension: extension=php_pthreads.dll
I've also added pthreadVC2.dll to system32 folder.
这是我的phpinfo():
PHP Version => 5.6.38
Compiler => MSVC11 (Visual C++ 2012)
Architecture => x64
这是我使用的 pthreads 版本:
php_pthreads-2.0.9-5.6-ts-vc11-x64
我已经阅读了有关该问题的类似主题,甚至根据视频教程逐步尝试了所有内容,但没有任何效果。我究竟做错了什么?