親自使用(正常工作...) X64 AVX NTS版本
⏩請參閱memcache.ini配置文件
php -i | findstr Compiler
結果的例證:
Compiler => MSVC 19.31.30818
Compiler => 2022
VS17 = Visual C ++ 2022> MSVC19。3x & 19。4x >工具集14。3x & 14。4x
VS16 = Visual C ++ 2019> MSVC19。2X >工具集14。2x
VC15 = Visual C ++ 2017> MSVC19。1X >工具集14。1X
VC14 = Visual C ++ 2015> MSVC19。0x > Toolset14。0x
php -i | findstr Architecture
結果典型:
Architecture => x64
php -i | findstr Thread
結果典型:
Thread Safety => disabled
NTS =禁用
TS =啟用
使用CPU-Z檢查您的CPU支持說明
main⏩VC15 / VS16 / VS17
- 8.2補丁
php-8.2.x_memcache.dll帶有PHP-SRC 8.2.13 (API 20220829)php-8.3.x_memcache.dll帶有PHP-SRC 8.3.0 (API 20230831)php-8.4.x_memcache.dll帶有PHP-SRC 8.4.0RC1 (API 20240924)vs16和vc17僅x64NON_BLOCKING_IO_php8⏩VC15 / VS16 / VS17
- 8.0補丁
php-8.1.x_memcache.dll帶有PHP-SRC 8.1.10 (API 20210902)php-8.0.x_memcache.dll帶有PHP-SRC 8.0.23 (API 20200930) NON_BLOCKING_IO_php8⏩VC15 / VS16
php-7.4.x_memcache.dll帶有PHP-SRC 7.4.13 (API 20190902)php-7.3.x_memcache.dll帶有PHP-SRC 7.3.25 (API 20180731)php-7.2.x_memcache.dll帶有PHP-SRC 7.2.34 (API 20170718) NON_BLOCKING_IO_php7⏩VC15 / VS16
php-7.1.x_memcache.dll帶有PHP-SRC 7.1.33 (API 20160303) ⏩VC14
php-7.1.x_memcache.dll帶有PHP-SRC 7.1.0 (API 20160303)php-7.0.x_memcache.dll帶有PHP-SRC 7.0.6 (API 20151012)在Windows Explorer中的DLL文件的詳細信息中查找“產品名稱” 
查看php_info() 
看看bininfo.csv
/O2 /GL /MD /Zi/LTCG /OPT:REF,ICF2016-05-18
實現memcache session時,我注意到2個錯誤
session.save_handler = memcache
session.save_path = "tcp://127.0.0.1:11211"
memcache.protocol = ascii ,根據memcache.lock_timeout在session_start()上有一些隨機鎖定,因此我已經設置了memcache.lock_timeout = 1 ,但這並不能解決問題(只會使其不那麼可見..)memcache.protocol = binary ,第一個錯誤似乎沒有出現,但會話破壞失敗了!所有測試都是用phpmyadmin進行的因此,您可以找到memcachesessionhandlerprepend.php a memcachesessionHandler實現sessionHandlerInterface以添加到您的php.ini中:
session.save_handler = user
auto_prepend_file = c:/path/to/MemcacheSessionHandlerPrepend.php
; session.save_path =
請參閱第23期和stackoverflow上的刻痕