diff --git a/reference/wincache/book.xml b/reference/wincache/book.xml index ea8c93b60c..fe7769eb28 100644 --- a/reference/wincache/book.xml +++ b/reference/wincache/book.xml @@ -59,6 +59,7 @@ &reference.wincache.setup; &reference.wincache.constants; &reference.wincache.reference; + &reference.wincache.win32build; diff --git a/reference/wincache/win32build.xml b/reference/wincache/win32build.xml new file mode 100644 index 0000000000..d6d96cfee4 --- /dev/null +++ b/reference/wincache/win32build.xml @@ -0,0 +1,136 @@ + + + + Building for Windows +
+ Prerequisites + + Building WinCache extension will require: + + + + PHP source code + + + PHP build environment + + + WinCache source code + + + + For completing first two steps, follow the step-by-step guide for how + to build PHP on Windows. + + + For getting the WinCache source code follow the instructions described in + Downloading PECL extensions. + +
+
+ Compiling and building + + The following steps describe how to compile and build WinCache on Windows OS: + + + + Open a command prompt which is used to build PHP + + + Go to the root folder where PHP sources are present + + + + Run the command: + + + + + + + + Run the command: + + + + The output will contain a new flag --enable-wincache. + + + + + Run the command: + + + + --enable-wincache is the only extra option which is + required to ensure that WinCache extension gets built properly. + This option will build WinCache and will statically link it with PHP dll. + To build WinCache extension as a stand-alone DLL use the option + --enable-wincache=shared. + + + + + Run the command: + + + + + + +
+
+ Verifying the build + + The following steps describe how to verify that WinCache has been built correctly: + + + + + Go to the folder where the PHP binaries are built + + + + + Run the command: + + + + If WinCache has been built properly, the output of this command will + list the INI directives and functions supported by WinCache. + + + +
+
+ +