Windows 上的 Memcache,找不到错误 php5.dll

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2306132/
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-09-15 13:59:29  来源:igfitidea点击:

Memcache on windows, error php5.dll not found

phpwindowsmemcached

提问by dfilkovi

I use PHP 5.3.0 and after hours of searching found a php_memcache.dllthat is compiled for that version, now as I start php it gives me an error

我使用 PHP 5.3.0,经过数小时的搜索找到了php_memcache.dll为该版本编译的,现在当我启动 php 时,它给了我一个错误

The program can't start because php5.dll is missing from your computer. Try reinstalling the program to fix the problem.

程序无法启动,因为您的计算机缺少 php5.dll。尝试重新安装程序以解决问题。

As I see it there is php5ts.dllin php folder, and I can't find php5.dll.

正如我所见,它php5ts.dll在 php 文件夹中,但我找不到php5.dll.

And as a result memcache does not start. How can I fix this?

结果 memcache 没有启动。我怎样才能解决这个问题?

回答by kibemau

Old question, but are you sure the php_memcache.dll you downloaded is a thread-safe/unsafe compatible with your PHP install?

老问题,但您确定您下载的 php_memcache.dll 与您的 PHP 安装兼容吗?

Look in your PHP directory: if there's a "php5ts.dll" you have a thread-safe PHP, so you need a thread-safe "php_memcache.dll" too, and vice-versa.

查看您的 PHP 目录:如果有“php5ts.dll”,那么您就有一个线程安全的 PHP,因此您也需要一个线程安全的“php_memcache.dll”,反之亦然。

I had the same problem, with a diferent php_.dll, and the error message about php5.dll confused the heck out of me for several hours too, but it was just a matter of downloading the right php_.dll.

我遇到了同样的问题,使用不同的php_.dll,关于 php5.dll 的错误消息也让我困惑了几个小时,但这只是下载正确的 php_.dll 的问题

回答by Línlǐjiàn

  1. download php5.dll

  2. copy and paste to ""

  1. 下载 php5.dll

  2. 复制并粘贴到“”

回答by Sarfraz

Most likely your memcache_php.dllfiles needs php5.dllfile to be able to work correctly.

很可能您的memcache_php.dll文件需要php5.dll文件才能正常工作。

I suppose it should be distributed as part of that memcache for PHP. Or you can google about php5.dllto know more about it.

我想它应该作为 PHP 内存缓存的一部分分发。或者你可以谷歌一下php5.dll了解更多。