Build your own PHP implementation method on the windows platform of only works for php5.2
- 2020-07-21 07:05:53
- OfStack
Build steps
1. Install vs2008
2, install windows sdk 6.1
3, download php 5.2 source code, you can get Releases from here (do not unzip yet)
4, download ES9en_ES10en32.zip, click to download ES12en_ES13en32.zip
5, to download win32build.zip, click on win32build.zip
6, download libxml2, iconv, zlib library http: / / www zlatkovic. com/pub libxml /
7, create C:\ php5.2-ES35en (or change to the directory you want, such as C :\ test, etc.) Then create C:\ php5.2-ES40en \win32build, C:\ ES44en5.2-ES45en \bindlib_w32, C:\ php5.2-ES50en \ php-ES52en.
8, win32build.zip to C:\ ES58en5.2-ES59en \win32build. C:\ es63EN5.2-ES64en \win32build should contain subdirectories such as bin, include, lib, etc.
9, unzip bindlib_w32.ES73en :\ es75EN5.2-ES76en \bindlib_w32.
Compile bindlib_w32 and put the resulting ES82en.lib into C:\ es85EN5.2-ES86en \win32build\lib, overwriting the original.
10, unzip php 5.2 source code to C:\ php5.2-ES94en \ ES95en-ES96en
11. Open windows sdk 6.1 shell and type the following command:
12.
13,
14, view compilation options
15. Input construction instructions according to your own needs:
16,
17. After the completion of make, you can see that C:\ php5.2-ES122en added Release_TS folder. This folder is used to store files after build.
1. Install vs2008
2, install windows sdk 6.1
3, download php 5.2 source code, you can get Releases from here (do not unzip yet)
4, download ES9en_ES10en32.zip, click to download ES12en_ES13en32.zip
5, to download win32build.zip, click on win32build.zip
6, download libxml2, iconv, zlib library http: / / www zlatkovic. com/pub libxml /
7, create C:\ php5.2-ES35en (or change to the directory you want, such as C :\ test, etc.) Then create C:\ php5.2-ES40en \win32build, C:\ ES44en5.2-ES45en \bindlib_w32, C:\ php5.2-ES50en \ php-ES52en.
8, win32build.zip to C:\ ES58en5.2-ES59en \win32build. C:\ es63EN5.2-ES64en \win32build should contain subdirectories such as bin, include, lib, etc.
9, unzip bindlib_w32.ES73en :\ es75EN5.2-ES76en \bindlib_w32.
Compile bindlib_w32 and put the resulting ES82en.lib into C:\ es85EN5.2-ES86en \win32build\lib, overwriting the original.
10, unzip php 5.2 source code to C:\ php5.2-ES94en \ ES95en-ES96en
11. Open windows sdk 6.1 shell and type the following command:
setenv /x86 /xp /release
12.
cd C:\php5.2-mybuild\php-src
13,
buildconf
14, view compilation options
cscript /nologo configure.js --help
15. Input construction instructions according to your own needs:
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,
nmake
17. After the completion of make, you can see that C:\ php5.2-ES122en added Release_TS folder. This folder is used to store files after build.