- install git for windows
- install Visual Studio 2012 or higher, any edition
- make sure you have Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed, the latest update as of 14.7.2013 can be found here
- download php 5.5 source code
- download latest php sdk binary tools from here
- download deps for php 5.5 vc11(either x64 or x86, depending on which flavor you're going to compile) from the same location
- create a folder X:\compilation (X is drive letter)
- open VS2012 x64 Native Command Shell Prompt
- execute the following commands
- cd to X:\compilation
- bin\phpsdk_setvars.bat
- bin\phpsdk_buildtree.bat .
- extract php source code to X:\compilation\vc11\x64\src, the result be sth like X:\compilation\vc11\x64\src
- extract deps into X:\compilation\vc11\x64\deps
- extract binary tools to X:\compilation, without creating a subfolder
- cd to X:\compilation\vc11\x64\src\ext
- run git clone https://github.com/nicolasff/phpredis.git
- cd to X:\compilation\vc11\x64\src
- run buildconf.bat
- run configure --disable-all --enable-cli --enable-redis --enable-redis-session --disable-zts
- run nmake