PHP7-memcache-dll
Clone or download
Latest commit 02d0d55 Jan 8, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
vc14 unchanged Apr 26, 2017
vc15 php-src 7.3.1 Jan 8, 2019
MemcacheSessionHandlerPrepend.php bug fix in write method. Thanks @ma0dubois Apr 10, 2018
README.md php-src 7.3.1 Jan 8, 2019
memcache.ini unchanged Apr 26, 2017

README.md

php-7.3.x_memcache.dll

2019-01-08

compiled with:

Dependencies

  • dll (non debug) from deps x86 - x64
  • MSVC15 redist 14.16.27012 x86 - x64

CFLAGS add:

LDFLAGS add:


php-7.2.x_memcache.dll

2018-12-06

compiled with:

Dependencies

  • dll (non debug) from deps x86 - x64
  • MSVC15 redist 14.16.27012 x86 - x64

CFLAGS add:

LDFLAGS add:

it is no longer worth using MemcacheSessionHandlerPrepend.php for php-7.2.x_memcache.dll!

Just put in your php.ini something like:

session.save_handler = memcache  
session.save_path = "tcp://127.0.0.1:11211?persistent=1&weight=1&timeout=1&retry_interval=15"

php-7.1.x_memcache.dll

2017-08-25 MSVC 15.3 (19.11.25506) - Window Kit 10.0.15063.0 - Compiled with:

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


MSVC14 discontinued. Update only MSVC15

Only tested (and working fine) on x64 nts.

Require Redistribuable Microsoft Visual C++ pour Visual Studio 2017

See my memcache.ini configuration