Build Your own PHP implementation method on the Windows platform (php5.2 only)

Source: Internet
Author: User
This article is on the Windows platform to build their own PHP implementation of a detailed analysis of the introduction, the need for friends can refer to the following (only applicable to php5.2)  

Build Steps
1, install VS2008
2, install Windows SDK 6.1
3, download PHP 5.2 Source code, can get from here Releases (do not extract first)
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 etc library http://www.zlatkovic.com/pub/libxml/
7, create c:php5.2-mybuild (also can be changed to the directory you want, such as c:test, etc.). Then create C:php5.2-mybuildwin32build, C:php5.2-mybuildbindlib_w32, C:php5.2-mybuildphp-src.
8, extract Win32build.zip to C:php5.2-mybuildwin32build. After decompression, C:php5.2-mybuildwin32build should contain subdirectories such as Bin,include,lib.
9, extract Bindlib_w32.zip to C:php5.2-mybuildbindlib_w32.
    compiles the bindlib_w32, the generated resolv.lib is placed in the C:php5.2-mybuildwin32buildlib, overwriting the original.
10, extract PHP 5.2 source code to C:PHP5.2-MYBUILDPHP-SRC
11, open the Windows SDK 6.1 shell, type the following directive:

copy code code is as follows:
SETENV/X86/XP/ Release


,

copy Code code is as follows:
CD c:php5.2-mybuildphp-src


,

copying code The code is as follows:
buildconf


14, view compilation options

copy code code as follows:
Cscript/nologo configure.js--help


15, enter the build directive as needed:

copy code code 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


,

Copy Code code as follows: After the
nmake


17,make, you can see the new Release_ts folder under the C:php5.2-mybuild directory. This folder is used to store files after build, and you can configure your own specified output directory by modifying--enable-object-out-dir.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.