我想在 wampserver php 7.4.4 中安装 pthreads 扩展,但我不知道为什么不起作用。
我按照以下步骤操作:
1)下载这个文件“php_pthreads-3.2.0-7.2-ts-vc15-x64”
2) 将“pthreadVC2.dll”提取到我的 php 根目录并将其添加到 PATH
3) 将“php_pthreads.dll”提取到我的 /ext 文件中
4)添加到好的php.ini这一行“extension=pthreads”
5)重启wamp
我的 PHP 信息:
System Windows NT DESKTOP-AIE5C8O 10.0 build 18363 (Windows 10) AMD64
Build Date Mar 17 2020 13:42:17
Compiler Visual C++ 2017
Architecture x64
Configure Command cscript /nologo /e:jscript configure.js "--enable-snapshot-build" "--enable-debug-pack" "--with-pdo-oci=c:\php-snap-build\deps_aux\oracle\x64\instantclient_12_1\sdk,shared" "--with-oci8-12c=c:\php-snap-build\deps_aux\oracle\x64\instantclient_12_1\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet=shared" "--without-analyzer" "--with-pgo"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File C:\wamp64\bin\apache\apache2.4.41\bin\php.ini
Scan this dir for additional .ini files (none)
Additional .ini files parsed (none)
PHP API 20190902
PHP Extension 20190902
Zend Extension 320190902
Zend Extension Build API320190902,TS,VC15
PHP Extension Build API20190902,TS,VC15
Debug Build no
Thread Safety enabled
Thread API Windows Threads
Zend Signal Handling disabled
Zend Memory Manager enabled
Zend Multibyte Support disabled
IPv6 Support enabled
DTrace Support disabled
Registered PHP Streams php, file, glob, data, http, ftp, zip, compress.zlib, phar
Registered Stream Socket Transports tcp, udp
Registered Stream Filters convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, zlib.*
谢谢