39

I am borrowing the similar thread that wasn't helpfull for me: 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

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

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

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

Community
  • 1
  • 1
DS_web_developer
  • 3,622
  • 13
  • 52
  • 83

5 Answers5

65

I found this link and it worked for me:

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/

Sean Colombo
  • 1,459
  • 17
  • 24
Devilroj
  • 674
  • 6
  • 3
  • 3
    Links can rot! Please describe your amswer briefly – Bhuvan Rikka Sep 15 '12 at 09:14
  • 5
    I am giving you an upvote because this IS working windows memcache extension compiled for php 5.4.x and VC9. exactly what original question asked for, and much better solution than statically compiled version of php with memcache extension. – seven Sep 18 '12 at 23:01
  • 2
    @BhuvanRikka You mean like edit the question and add the base64 of the DLL? I don't think that's allowed. – oxygen Sep 26 '12 at 19:17
  • 2
    Page can be found -- apache started with this perfectly. – Dustin Graham Jan 22 '13 at 23:28
  • Using XAMPP 1.8.1 (Compiler MSVC9 Visual C++ 2008) on Windows 8. Followed your link http://windows.php.net/downloads/pecl/releases/memcache/ . This version works for me: [php_memcache-3.0.8-5.4-ts-vc9-x86.zip](http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/php_memcache-3.0.8-5.4-ts-vc9-x86.zip) – Olav Kokovkin Jan 18 '14 at 18:09
  • what's the difference between ts and nts release? you can find both in here: http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/ and both are for VC9 – Juan Carlos Alpizar Chinchilla Mar 05 '14 at 21:20
  • This one worked for me php_memcache-3.0.8-5.6-ts-vc11-x86.zip – Hernán Eche Aug 04 '15 at 18:55
13

I found out this:

http://windows.php.net/downloads/pecl/snaps/memcache/3.0.6/

Try the following if the above fails:

https://www.dropbox.com/sh/sjkuotlz2sl1kpc/v7-QZeFxHR

Arvind Gupta
  • 143
  • 1
  • 6
5

The link is dead try 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:

-The OS version (32 or 64 bit)

-The PHP Compiler version

-Thread Safe support

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

Gadelkareem
  • 1,067
  • 13
  • 30
2

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

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

Here is some output from 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 $
Justin T.
  • 3,643
  • 1
  • 22
  • 43
2

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

  • 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

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

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

steven
  • 662
  • 1
  • 6
  • 13