From 302a8088354b78cb6ae4ee5253f583fdf5979e35 Mon Sep 17 00:00:00 2001 From: Ruslan Yakushev Date: Fri, 13 Nov 2009 06:43:13 +0000 Subject: [PATCH] Added section about how to build WinCache on Windows. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@290663 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/wincache/book.xml | 1 + reference/wincache/win32build.xml | 136 ++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+) create mode 100644 reference/wincache/win32build.xml 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. + + + +
+
+ +