windows - php_memcache.dll - 用于 PHP 5.4

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10347743/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 21:58:28  来源:igfitidea点击:

windows - php_memcache.dll - for PHP 5.4

phpwindowsdllmemcached

提问by DS_web_developer

I am borrowing the similar thread that wasn't helpfull for me: php_memcache.dll for PHP 5.3

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

I setup a server using the latest version of easyPHP for Windows. With it came PHP 5.4. I'm now looking for a memcache.dll file that worked for me before and I get this error

我使用最新版本的 easyPHP for Windows 设置了一个服务器。随之而来的是 PHP 5.4。我现在正在寻找一个以前对我有用的 memcache.dll 文件,但我收到了这个错误

"PHP Startup: memcache: Unable t initialize module. Module compiled with module API=20090626 PHP compiled with module api=20100525 These options need to match"

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

Any links to a PHP 5.4 memcache.dll file would be greatly appreciated.

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

In the mentioned thread they adressed version for 5.3 and pierre, but there I find only an older version of the dll

在提到的线程中,他们提到了 5.3 和 pierre 的版本,但我发现只有旧版本的 dll

回答by Devilroj

I found this link and it worked for me:

我找到了这个链接,它对我有用:

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

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

Or you can browse a list of the latest releases here and find an applicable version:

或者,您可以在此处浏览最新版本的列表并找到适用的版本:

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

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

回答by Arvind Gupta

回答by Gadelkareem

The link is dead try http://windows.php.net/downloads/pecl/releases/memcache/

该链接已失效,请尝试 http://windows.php.net/downloads/pecl/releases/memcache/

You'll find the latest memcache dll release in there. What you need to know before downloading:

您会在那里找到最新的 memcache dll 版本。下载前您需要了解的内容:

-The OS version (32 or 64 bit)

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

-The PHP Compiler version

-PHP编译器版本

-Thread Safe support

-线程安全支持

The PHP Compiler version and thread safe support can be easily checked using the phpinfo() function

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

回答by steven

Any pecl modules that have officially been compiled for windows you find under http://windows.php.net/downloads/pecl/releases/

您可以在http://windows.php.net/downloads/pecl/releases/下找到为 Windows 正式编译的任何 pecl 模块

  • You need to know what php version you are running ie: 5.3,5.4,5.5 and so on

  • You need to know if your php version is 32 or 64 ie x86, x64

  • You need to know if the php version was compiled as thread safe or not ie:ts,nts
  • 您需要知道您正在运行的 php 版本,即:5.3、5.4、5.5 等

  • 你需要知道你的 php 版本是 32 还是 64 ie x86, x64

  • 您需要知道 php 版本是否被编译为线程安全的 ie:ts,nts

All the information you can get from a file with the following content

您可以从具有以下内容的文件中获得的所有信息

    <?php phpinfo() 

and view it from the webserver or from the command line sending the output to a file with:

并从网络服务器或从命令行查看它,将输出发送到一个文件:

    php -i > phpinfo.txt

NOTE: from the command line you get the data for php-cli witch most likely was compiled with the same configuration

注意:从命令行你得到 php-cli 女巫的数据很可能是用相同的配置编译的

And note that there is Memcache and Memcached but from the php website only memcache is available

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

回答by Justin T.

Thanks Kevin Horst, tested and working on my Win7 box !

感谢 Kevin Horst,在我的 Win7 机器上测试和工作!

The solution :just download the statically compiled versionhosted on Amazon AWS, and extract.

解决方案:只需下载托管在 Amazon AWS 上的静态编译版本,然后解压缩。

Here is some output from php -i:

以下是一些输出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 $