Search code examples
phpwindowsdllwincache

How does one build WINCACHE .DLL from source files?


I downloaded WINCACHE-1.3.7.4.tgz from the PECL download page. Unpacking it i find many a C orientated source file. Compiling from source in Linux i have some experience in BUT none at all in Windows (i am running Windows 7).

The instructions on PHP.net's WinCache pages does not seem to match the files extracted from the `.tgz'

I have looked at suggested questions

but i have NO idea where to actually start off.

And thus, does anyone know how i would build WinCache .DLL from the provided source? (if at all easily possible)


Solution

  • Do you really need to build this extension from source? If not, you can download precompiled DLLs here. If yes, you have to follow this tutorial for compiling PHP extension on Windows. Basically, you have to build PHP and it will also compile extension that you will enable. After successful compilation you should be able to find required dll and use it with your running PHP.

    But another question is for what do you need it? What version of PHP do you use? If 5.5+ you should consider OPCache instead WinCache.

    Since the Zend Opcache extension is now in the core PHP product, the WinCache opcode cache is disabled by default. As of PHP 5.5, the opcode cache portion of WinCache is deprecated, and will be removed in a future release of the WinCache extension.