Build Steps
1. Install vs2008
2. Install windows sdk 6.1
3. Download the php 5.2 source code, which can be obtained from this page.
Releases(Do not decompress the package first)
4. Download bindlib_w32.zip,
Click to download bindlib_w32.zip
5. Download win32build.zip,
Click to download win32build.zip
6. Download libraries such as libxml2, iconv, and zlib.
Http://www.zlatkovic.com/pub/libxml/
7. Create C: \ php5.2-mybuild (you can also change it to the directory you want, such as C: \ test ). Create C: \ php5.2-mybuild \ win32build, C: \ php5.2-mybuild \ bindlib_w32, C: \ php5.2-mybuild \ php-src.
8. Decompress win32build.zip to C: \ php5.2-mybuild \ win32build. After decompression, C: \ php5.2-mybuild \ win32build should contain sub-directories such as bin, include, and lib.
9. Decompress bindlib_w32.zip to C: \ php5.2-mybuild \ bindlib_w32.
Compile bindlib_w32 and put the generated resolv. lib in C: \ php5.2-mybuild \ win32build \ lib to overwrite the original one.
10. decompress the php 5.2 source code to C: \ php5.2-mybuild \ php-src.
11. Open the windows sdk 6.1 shell and enter the following command:
Copy codeThe Code is as follows: setenv/x86/xp/release
12,Copy codeThe Code is as follows: cd C: \ php5.2-mybuild \ php-src
13,Copy codeThe Code is as follows: buildconf
14. View compilation optionsCopy codeThe Code is as follows: cscript/nologo configure. js -- help
15. Enter the build command as needed:Copy codeThe Code is as follows: cscript/nologo configure. js -- enable-object-out-dir = "C: \ php5.2-mybuild" -- with-php-build = "C: \ php5.2-mybuild \ win32build "-- disable-all -- enable-cli
16,Copy codeThe Code is as follows: nmake
17. After making, you can see that the Release_TS folder is added under the C: \ php5.2-mybuild Directory, which is used to store the files after build, you can modify -- enable-object-out-dir to configure the output directory you specified.