windows – php_memcache.dll – 用于PHP 5.4

我借用了对我没有帮助的类似线程: php_memcache.dll for PHP 5.3

我使用最新版本的easyPHP for Windows安装服务器。 随着它来到PHP 5.4。 我现在正在寻找一个为我工作的memcache.dll文件,我得到这个错误

“PHP启动:memcache:无法初始化模块。模块编译模块API = 20090626 PHP模块编译为api = 20100525这些选项需要匹配”

任何链接到PHP 5.4 memcache.dll文件将不胜感激。

在提到的线程中,他们为5.3和pierre提供了版本,但是在那里我只find了dll的老版本

我发现这个链接,它为我工作:

php_memcache-3.0.8-5.4-ts-vc9-x86.zip

或者,您可以在这里浏览最新版本的列表,并find适用的版本:

http://windows.php.net/downloads/pecl/releases/memcache/

链接是死的尝试http://windows.php.net/downloads/pecl/releases/memcache/

你会在那里find最新的memcache DLL版本。 下载前需要了解的内容:

– 操作系统版本(32或64位)

PHP编译器版本

线程安全支持

PHP编译器版本和线程安全支持可以使用phpinfo()函数轻松检查

感谢凯文霍斯特,testing和我的Win7框工作!

解决scheme:只需下载Amazon AWS上托pipe的静态编译版本 ,然后解压。

以下是php -i一些输出:

 phpinfo() PHP Version => 5.4.0 System => Windows NT xxxx 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586 Build Date => Mar 7 2012 14:17:27 Compiler => MSVC9 (Visual C++ 2008) Architecture => x86 Configure Command => cscript /nologo configure.js "--enable-cli" "--enable-memcache=shared" Server API => Command Line Interface Virtual Directory Support => enabled Configuration File (php.ini) Path => C:\Windows Loaded Configuration File => C:\Users\xxxx\Downloads\UniServer\usr\local\php\php.ini Scan this dir for additional .ini files => (none) Additional .ini files parsed => (none) PHP API => 20100412 PHP Extension => 20100525 Zend Extension => 220100525 Zend Extension Build => API220100525,TS,VC9 PHP Extension Build => API20100525,TS,VC9 memcache memcache support => enabled Active persistent connections => 0 Version => 2.2.5 Revision => $Revision: 319585 $ 

任何pecl模块已经正式编译的窗口,你可以findhttp://windows.php.net/downloads/pecl/releases/

  • 你需要知道你正在运行的是什么PHP版本,例如:5.3,5.4,5.5等等

  • 你需要知道你的PHP版本是32或64,即x86,x64

  • 你需要知道如果PHP版本被编译为线程安全或不,即:ts,nts

所有的信息,你可以从一个文件中获得以下内容

  <?php phpinfo() 

并从networking服务器或从命令行查看它发送输出到一个文件与:

  php -i > phpinfo.txt 

注意:从命令行你得到的数据为php-cli巫婆最有可能被编译了相同的configuration

并注意,有Memcache和Memcached,但从PHP网站只有memcache可用