How to build your own PHP implementation on the windows platform (only for php5.2)_PHP tutorial

WBOY
Release: 2016-07-21 15:00:20
Original
764 people have browsed it

Building steps
1, install vs2008
2, install windows sdk 6.1
3, download php 5.2 source code, you can get it from hereReleases (Don’t unzip it yet)
4. Download bindlib_w32.zip, Click to download bindlib_w32.zip
5. Download win32build.zip, Click to download win32build.zip
6. Download libxml2, iconv, zlib and other libraries http://www.zlatkovic.com/pub/libxml/
7. Create C:php5.2-mybuild (you can also change it to The desired directory, such as C:test, etc.). Then create C:php5.2-mybuildwin32build, C:php5.2-mybuildbindlib_w32, C:php5.2-mybuildphp-src.
8. Unzip win32build.zip to C:php5.2-mybuildwin32build. After decompression, C:php5.2-mybuildwin32build should contain bin, include, lib and other subdirectories.
9. Unzip bindlib_w32.zip to C:php5.2-mybuildbindlib_w32.
Compile bindlib_w32, and put the generated resolv.lib into C:php5.2-mybuildwin32buildlib, overwriting the original one.
10. Unzip the php 5.2 source code to C:php5.2-mybuildphp-src
11. Open the windows sdk 6.1 shell and type the following command:

Copy code The code is as follows:

setenv /x86 /xp /release

12,
Copy code The code is as follows:

cd C:php5.2-mybuildphp-src

13,
Copy the code The code is as follows:

buildconf

14, check the compilation options
Copy code The code is as follows:

cscript /nologo configure.js --help

15. Enter the build instructions according to your needs:
Copy code The code is as follows:

cscript /nologo configure.js --enable-object-out-dir="C:php5.2- mybuild" --with-php-build="C:php5.2-mybuildwin32build" --disable-all --enable-cli

16,
Copy the code The code is as follows:

nmake

17. After make, you can see it in the C:php5.2-mybuild directory A new Release_TS folder is added, which is used to store files after build. You can configure your own specified output directory by modifying --enable-object-out-dir.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/328071.htmlTechArticleBuilding steps 1, install vs2008 2, install windows sdk 6.1 3, download php 5.2 source code, you can get Releases from here (Don’t unzip it yet) 4. Download bindlib_w32.zip, click to download bind...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template