• Stars
    star
    626
  • Rank 69,331 (Top 2 %)
  • Language
    PHP
  • Created about 8 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PHP-memcache-dll

PHP - pecl-memcache Windows binaries

Personally use (and working fine...) x64 avx nts version.
See memcache.ini configuration file exemple

  • AVX releases for specified directory

How to get the good version

  1. 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

  1. x86 or x64:

    • php -i | findstr Architecture

      Result exemple:

      โ€‹ Architecture => x64

  2. TS or NTS:

    1. php -i | findstr Thread

      Result exemple:

      โ€‹ Thread Safety => disabled

      disabled > NTS

  3. AVX or not (SSE2):

    • Check your cpu supported instructions with CPU-Z


Version 8.2 "26c0f51" branch main

  • 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

Version 8.0.1 "96910ce" branch NON_BLOCKING_IO_php8

โš ๏ธ discontinued

โœ… VC15 / VS16 / VS17

2022-07-29 - commit

2022-09-22 - build

Version 8.0 "36d7181" branch NON_BLOCKING_IO_php8

โš ๏ธ discontinued

โœ… VC15 / VS16

2020-12-06 - commit

2020-12-06 - build

Version 4.0.5.2 "4fdcbf9" branch NON_BLOCKING_IO_php7

โš ๏ธ discontinued

โœ… VC15 / VS16

2020-09-24 - commit

2020-11-14 - build

Version 3.0.9-dev

โš ๏ธ discontinued

โœ… VC14

2016-12-08


Check your version

  • Look for 'Product name' in detailed information of the dll file in Windows explorer image-20201114113957010

  • Look at php_info() image-20201114113957010

  • Look at bininfo.csv

Build Scripts

Dependencies


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