Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Memcache for PHP7 on Windows?

Does any one know about a Memcache version that supports PHP7 on Windows?

Memcache is working great for PHP 5.6 (on Windows), but I cannot find the version for PHP7.

like image 561
Jens Kirk Avatar asked Jan 22 '16 17:01

Jens Kirk


People also ask

How to install memcached php 7?

Install it via sudo apt-get install -y php-memcached after adding the php7 repository. If php-memcached was not installed, we can build it manually. (However, it's likely available to install via the php7. 0-memcached package now).


2 Answers

Please find php_memcache.dll for php7.0.x, php7.1.x, php7.2.x https://github.com/nono303/PHP7-memcache-dll

  • vc14 & vc15
  • x86 & x64
  • ts & nts
like image 189
nono303 Avatar answered Oct 10 '22 07:10

nono303


  1. At first, check phpinfo(), example:
    • Compiler: MSVC14 (Visual C++ 2015)
    • Architecture: x64
    • PHP Extension Build: API20160303,NTS,VC14
  2. Based on information in phpinfo(); choose right dll:
    • Source: https://github.com/nono303/PHP7-memcache-dll
    • Folder (based on example): vc14 / x64 / nts
  3. Copy to php_memcache.dll to \PHP\v7.1\ext
  4. Enable php_memcache in php.ini, add line:
    • extension=php_memcache.dll
  5. Check presentation of 'memcache' section in phpinfo();
  6. Check errors.log
like image 34
Matej Kolesár Avatar answered Oct 10 '22 08:10

Matej Kolesár