PHP - pecl-memcache Windows binaries
- src: https://github.com/websupport-sk/pecl-memcache
- doc: https://www.php.net/manual/en/book.memcache.php
Personally use (and working fine...) x64 avx nts version.
See memcache.ini configuration file exemple
- AVX releases for specified directory
good version
How to get the-
VC14, VC15, VS16, VS17:
-
php -i | findstr Compiler
Result exemple:
β
Compiler => MSVC 19.31.30818, untested
MSVC2022 > 19.3x > toolset 14.3x > VS17
MSVC2019 > 19.2x > toolset 14.2x > VS16
MSVC2017 > 19.1x > toolset 14.1x > VC15
MSVC2015 > 19.0x > toolset 14.0x > VC14
-
-
x86 or x64:
-
php -i | findstr Architecture
Result exemple:
β
Architecture => x64
-
-
TS or NTS:
-
php -i | findstr Thread
Result exemple:
β
Thread Safety => disabled
disabled > NTS
-
-
AVX or not (SSE2):
-
Check your cpu supported instructions with CPU-Z
-
26c0f51" branch main
Version 8.2 "
- VS17: toolset 14.34.31932
- VS16: toolset 14.29.30133
- VC15: toolset 14.16.27023
- Window Kit: 10.0.22621.0
2022-10-25 - commit
2022-10-26 - build
php-8.2.x_memcache.dll
with php-src 8.2.0RC5 (API 20220829)
96910ce" branch NON_BLOCKING_IO_php8
Version 8.0.1 "β οΈ discontinued
β VC15 / VS16 / VS17
2022-07-29 - commit
2022-09-22 - build
php-8.1.x_memcache.dll
with php-src 8.1.10 (API 20210902)php-8.0.x_memcache.dll
with php-src 8.0.23 (API 20200930)
36d7181" branch NON_BLOCKING_IO_php8
Version 8.0 "β οΈ discontinued
β VC15 / VS16
2020-12-06 - commit
2020-12-06 - build
php-7.4.x_memcache.dll
with php-src 7.4.13 (API 20190902)php-7.3.x_memcache.dll
with php-src 7.3.25 (API 20180731)php-7.2.x_memcache.dll
with php-src 7.2.34 (API 20170718)
4fdcbf9" branch NON_BLOCKING_IO_php7
Version 4.0.5.2 "β οΈ discontinued
β VC15 / VS16
2020-09-24 - commit
2020-11-14 - build
php-7.1.x_memcache.dll
with php-src 7.1.33 (API 20160303)
3.0.9-dev
Versionβ οΈ discontinued
β VC14
2016-12-08
php-7.1.x_memcache.dll
with php-src 7.1.0 (API 20160303)php-7.0.x_memcache.dll
with php-src 7.0.6 (API 20151012)
Check your version
-
Look for 'Product name' in detailed information of the dll file in Windows explorer
-
Look at bininfo.csv
Build Scripts
- @nono303/win-build-scripts
- cflags:
/O2 /GL /MD /Zi
- ldflags:
/LTCG /OPT:REF,ICF
Dependencies
- Built and must be run with php deps in php-sdk 'staging' serie
2016-05-18
Iβve noticed 2 bugs when implementing memcache session.handler for
session.save_handler = memcache
session.save_path = "tcp://127.0.0.1:11211"
- With
memcache.protocol = ascii
, there is some random lock onsession_start()
according tomemcache.lock_timeout
so i've setmemcache.lock_timeout = 1
but that doesnβt resolve the problem (just makes it less visible..) - With
memcache.protocol = binary
, first bug seems not appearing but session destroy failed ! All that test have been done with phpmyadmin which write complex data in session
So you can find MemcacheSessionHandlerPrepend.php a MemcacheSessionHandler implementing SessionHandlerInterface to add to your php.ini
with config:
session.save_handler = user
auto_prepend_file = c:/path/to/MemcacheSessionHandlerPrepend.php
; session.save_path =