在windows平台上构建自己的PHP(仅适用于php5.2)
构建步骤
1, 安装vs2008
2, 安装windows sdk 6.1
3, 下载php 5.2源码,可以从此处获取Releases (先不要解压)
4, 下载bindlib_w32.zip,http://www.php.net/extra/bindlib_w32.zip
5, 下载win32build.zip,http://www.php.net/extra/win32build.zip
6, 下载libxml2,iconv,zlib等库 http://www.zlatkovic.com/pub/libxml/
7, 创建C:\php5.2-mybuild (也可以改成你想要的目录,比如C:\test等等)。 接着创建C:\php5.2-mybuild\win32build, C:\php5.2-mybuild\bindlib_w32, C:\php5.2-mybuild\php-src 。
8, 解压 win32build.zip 到 C:\php5.2-mybuild\win32build 。 解压后C:\php5.2-mybuild\win32build应该包含bin,include,lib等子目录。
9, 解压 bindlib_w32.zip 到 C:\php5.2-mybuild\bindlib_w32 。
编译bindlib_w32,生成的resolv.lib 放到 C:\php5.2-mybuild\win32build\lib 中,覆盖掉原来的。
10,解压 php 5.2源码 到 C:\php5.2-mybuild\php-src
11,打开windows sdk 6.1 shell,键入下述指令:
setenv /x86 /xp /release
12,
cd C:\php5.2-mybuild\php-src
13,
buildconf
14,查看编译选项
cscript /nologo configure.js --help
15,根据自己的需要输入构建指令:
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,make完之后,可以看到C:\php5.2-mybuild目录下新增了Release_TS文件夹,该文件夹用于存放build之后的文件,可以通过修改--enable-object-out-dir来配置自己指定的输出目录。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Chinese version
Chinese version, very easy to use

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1
Powerful PHP integrated development environment

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
