【发布时间】:2016-04-29 09:29:28
【问题描述】:
有谁知道 Windows 上支持 PHP7 的 Memcache 版本吗?
Memcache 非常适合 PHP 5.6(在 Windows 上),但我找不到 PHP7 的版本。
【问题讨论】:
-
顺便问下好问题。
-
各种获取memcache的方法[d]stackoverflow.com/a/52451979/1689770
有谁知道 Windows 上支持 PHP7 的 Memcache 版本吗?
Memcache 非常适合 PHP 5.6(在 Windows 上),但我找不到 PHP7 的版本。
【问题讨论】:
请查找 php7.0.x、php7.1.x、php7.2.x 的 php_memcache.dll https://github.com/nono303/PHP7-memcache-dll
【讨论】:
【讨论】:
这是您可以在 PHP7 Windows 安装(64 位)中使用的 dll
https://github.com/Alvine-IO/php7-windows/blob/master/x64/ts/dll/php_memcache.dll
【讨论】:
以防万一有人需要 dll 文件 - https://github.com/jur4x/PHP7-memcahe-dll。 为 PHP 7.0.6 编译,线程安全和非线程安全版本。
【讨论】:
ERROR: memcached: library 'memcached' not found
新的memcached 扩展在Windows 上不起作用,因为libmemcached 在Windows 上不起作用。但是,似乎有人已经将旧的 memcache 扩展安装在 Windows 上。我找不到一个好的预编译二进制文件,但是,经过大量挖掘,我找到了一个关于这个问题的PHP Bug Report。似乎有人找到了解决方案:
[2016-01-20 23:11 UTC] php at alternize dot com
git 存储库https://github.com/websupport-sk/pecl-memcache.git 的分支“NON_BLOCKING_IO_php7”在 win32 x86 线程安全模式下针对 php 7.0.2 构建良好。我还没有使用非线程安全和/或 x64 对其进行测试。
为了构建 php_memcache.dll,我按照https://wiki.php.net/internals/windows/stepbystepbuild#building_pecl_extensions 上的说明使用:
C:\php-sdk\phpdev\vc14\x86\php-7.0.2-src>buildconf
C:\php-sdk\phpdev\vc14\x86\php-7.0.2-src>configure --disable-all
--enable-cli --enable-zlib --enable-hash --enable-session
--without-gd --with-bz2 --enable-memcache=shared
C:\php-sdk\phpdev\vc14\x86\php-7.0.2-src>nmake
【讨论】: