Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

PHP-memcache-dll

> 编程语言
Open source

PHP-memcache-dll

629 stars0 likes1 views
WebsiteGitHub

About

PHP-memcache-dll

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...) vs18 x64 avx2 ts version
:fast_forward: See memcache.ini configuration file exemple

How to get the good version

VC14, VC15, VS16, VS17, VS18

  • php -i | findstr Compiler

    Result exemples:
    ​ Compiler => MSVC 19.31.30818
    ​ Compiler => 2022

    VS18 = Visual Studio 2026 > MSVC 19.5x > toolset 14.5x
    VS17 = Visual Studio 2022 > MSVC 19.3x & 19.4x > toolset 14.3x & 14.4x
    VS16 = Visual Studio 2019 > MSVC 19.2x > toolset 14.2x
    VC15 = Visual Studio 2017 > MSVC 19.1x > toolset 14.1x
    VC14 = Visual Studio 2015 > MSVC 19.0x > toolset 14.0x

x86 or x64

  • php -i | findstr Architecture

    Result exemple:
    ​ Architecture => x64

TS or NTS

  1. php -i | findstr Thread

    Result exemple:
    ​ Thread Safety => disabled

    NTS = disabled
    TS = enabled

PHP Version

  1. php -i | findstr PHP.API

    Result exemple:
    ​ PHP API => 20250925

    20250925 = 8.5
    20240924 = 8.4
    20230831 = 8.3
    20220829 = 8.2
    20210902 = 8.1
    20200930 = 8.0

AVX, AVX2 or not (SSE2):

  • Check your cpu supported instructions with CPU-Z

Release

:white_check_mark: active

Version 8.2 "ac8e8c5" - 2025-08-06 - branch main with PR103

:fast_forward: VS17 / VS18
x64
:adhesive_bandage: patch

  • php-8.4.x_memcache.dll with php-src 8.4.15 (API 20240924)
  • php-8.5.x_memcache.dll with php-src 8.5.0 (API 20250925)

:red_circle: ​ discontinued

Version 8.2 "972b554" - 2023-05-04 - branch main with PR103

:fast_forward: ​ VC15 / VS16 / VS17
:warning: only x64 for vs16 & vc17
:adhesive_bandage: patch

  • php-8.2.x_memcache.dll with php-src 8.2.13 (API 20220829)
  • php-8.3.x_memcache.dll with php-src 8.3.0 (API 20230831)
  • php-8.4.x_memcache.dll with php-src 8.4.0RC1 (API 20240924)

Version 8.0.1 "96910ce" - 2022-07-29 - branch NON_BLOCKING_IO_php8

:fast_forward: VC15 / VS16 / VS17
:adhesive_bandage: patch

  • 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)

Version 8.0 "36d7181" - 2020-12-06 - branch NON_BLOCKING_IO_php8

:fast_forward: VC15 / VS16

  • 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)

Version 4.0.5.2 "4fdcbf9" - 2020-09-24 - branch NON_BLOCKING_IO_php7

:fast_forward: VC15 / VS16

  • php-7.1.x_memcache.dll with php-src 7.1.33 (API 20160303)

Version 3.0.9-dev - 2016-12-08

:fast_forward: VC14

  • 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 php_info()

  • 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"  
  1. With memcache.protocol = ascii, there is some random lock on session_start() according to memcache.lock_timeout
    so i've set memcache.lock_timeout = 1 but that doesn’t resolve the problem (just makes it less visible..)
  2. 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 =   

See issue #23 and discution on stackoverflow

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHPextensionmemcachephprelease

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言