php 编译 设置版本,编译PHP的windows版本

--enable-snapshot-build       Build a snapshot; turns on everything i and ignores build errors

建立快照版本,打开所有编译项同时忽略编译错误

--enable-one-shot             Optimize for fast build - best for rele  snapshot builders, not so hot for

edit-and-rebuild hacking

--with-cygwin                 Path to cygwin utilities on your system

使用cygwin系统工具

--enable-object-out-dir       Alternate location for binary objects during build

二进制对象在编译后的目录

--enable-debug                Compile with debugging symbols

编译时带调试信息

--enable-debug-pack           Release binaries with external debug symbols

(--enable-debug must not be specified)

--disable-zts                 Thread safety

--with-prefix                 where PHP will be installed

--with-mp                     Tell VC9+ use up to [n,auto,disable] processes

for compilation

是否使用多处理器编译

--with-php-build              Path to where you extracted the development libraries

(http://wiki.php.net/internals/windows/   Assumes that it is a sibling of this so

dir (..\deps) if not specified

指定在windows下编译php需要的开发库

--with-extra-includes         Extra include path to use when building  everything

编译php时使用的其他包含路径

--with-extra-libs             Extra library path to use when linking  everything

链接时使用的其他包含库路径

--disable-ipv6                Disable IPv6 support (default is turn it on if available)

--enable-fd-setsize           Set maximum number of sockets for selected(2)

为selected设置最大数量的socket数量

--enable-zend-multibyte       Enable Zend multibyte encoding support

Fran?ois Laupretre came next, with a fix forhref="http://bugs.php.net/42396">bug

#42396 in PHP 5.He wrote that theconfiguration

option--enable-zend-multibyteleads

to

auto-detection of Unicode encoded scripts. This is fine until a script

contains null bytes following a call to__HALT_COMPILER(),

when

execution results in ‘a

lot of ‘?’ garbage‘. Effectively, this renders

anything using__HALT_COMPILER()(read:

PHK or phar) incompatible

with--enable-zend-multibyte,

with the only workaround being the

unacceptable one of turning off thedetect_unicodeflag.

Fran?ois’ patch offered ‘a

small detection loop‘ to check for a

sequence of four0xffbytes;

if found, Unicode detection is

switched off and the script considered non-Unicode. His idea was that

deliberately setting the switch would make generated archives compatible with

the configuration option.

--with-snapshot-template      Path to snapshot builder template dir

--enable-security-flags       Enable the compiler security flags

--enable-static-analyze       Enable the VC compiler static analyze

intel static analyze中使用static analyze 检查安全漏洞

--with-aolserver              Build AOLserver support

--enable-apache               Build Apache 1.3.x version of PHP

--with-apache-includes        Where to find Apache 1.3 headers

--with-apache-libs            Where to find Apache 1.3 libraries

--enable-apache2filter        Build Apache 2.x filter

--enable-apache2-2filter      Build Apache 2.2.x filter

--enable-apache2handler       Build Apache 2.x handler

--enable-apache2-2handler     Build Apache 2.2.x handler

--with-apache-hooks           Build Apache 1.3.x (hooks) version of PHP

--disable-cgi                 Build CGI version of PHP

--disable-cli                 Build CLI version of PHP

--enable-crt-debug            Enable CRT memory dumps for debugging send to STDERR

检测内存泄漏的主要工具是调试器和 C 运行时库 (CRT) 调试堆函数。若要启用调试堆函数,请在程序中包括以下语句:

#define _CRTDBG_MAP_ALLOC

#include

#include

--enable-cli-win32            Build console-less CLI version of PHP

--enable-embed                Embedded SAPI library

--enable-isapi                Build ISAPI version of PHP

--enable-nsapi                Build NSAPI for Netscape/iPlanet/SunONE

webservers

--with-nsapi-includes         Where to find NSAPI headers

--with-nsapi-libs             Where to find NSAPI libraries

--with-pi3web                 Pi3Web

--disable-bcmath              bc style precision math functions

--with-bz2                    BZip2

--disable-calendar            calendar conversion support

--disable-com-dotnet          COM and .Net support

--disable-ctype               ctype

--with-curl                   cURL support

--with-dba                    DBA support

Database (dbm-style) Abstraction Layer

--with-enchant                Enchant Support

Enchant spelling library

--without-ereg                POSIX extended regular expressions

--enable-fileinfo             fileinfo support

--disable-filter              Filter Support

是否使用flter扩展来处理安全过滤问题

--disable-ftp                 ftp support

--without-gd                  Bundled GD support

--without-t1lib               t1lib support

--with-gettext                gettext support

--with-gmp                    Include GNU MP support.

--disable-hash                enable hash support

--with-mhash                  mhash support

--without-iconv               iconv support

--with-imap                   IMAP Support

--with-interbase              InterBase support

--enable-intl                 Enable internationalization support

使用ICU库提供软件Unicode 和 Globalization支持,http://site.icu-project.org/

--disable-json                JavaScript Object Serialization support

--with-ldap                   LDAP support

--enable-mbstring             multibyte string functions

--enable-mbregex              multibyte regex support

--disable-mbregex-backtrack   check multibyte regex backtrack

--with-mcrypt                 mcrypt support

--with-mssql                  mssql support

--with-dblib                  mssql support with freetds

--without-mysqlnd             Mysql Native Client Driver

--with-oci8                   OCI8 support

--with-oci8-11g               OCI8 support using Oracle 11g Instant C

--disable-odbc                ODBC support

--with-openssl                OpenSSL support

--with-pgsql                  PostgreSQL support

--with-pspell                 pspell/aspell (whatever it's called thi

month) support

--disable-session             session support

--enable-shmop                shmop support

--with-snmp                   SNMP support

--enable-sockets              SOCKETS support

--with-sqlite3                SQLite 3 support

--with-config-file-scan-dir   Dir to check for additional php ini fil

--with-sybase-ct              SYBASE_CT support

--with-tidy                   TIDY support

--disable-tokenizer           tokenizer support

--disable-zip                 ZIP support

--disable-zlib                ZLIB support

--without-libxml              LibXML support

--without-dom                 DOM support

--enable-exif                 exif

--with-mysql                  MySQL support

--with-mysqli                 MySQLi support

--enable-pdo                  Enable PHP Data Objects support

--with-pdo-dblib              freetds dblib (Sybase, MS-SQL) support

--with-pdo-mssql              Native MS-SQL support for PDO

--with-pdo-firebird           Firebird support for PDO

--with-pdo-mysql              MySQL support for PDO

--with-pdo-oci                Oracle OCI support for PDO

--with-pdo-odbc               ODBC support for PDO

--with-pdo-pgsql              PostgreSQL support for PDO

--with-pdo-sqlite             for pdo_sqlite support

--with-pdo-sqlite-external    for pdo_sqlite support from an external

--disable-phar                disable phar support

--enable-phar-native-ssl      enable phar with native OpenSSL support

--without-simplexml           Simple XML support

--enable-soap                 SOAP support

--with-sqlite                 SQLite support

--without-wddx                WDDX support

--without-xml                 XML support

--disable-xmlreader           XMLReader support

--with-xmlrpc                 XMLRPC-EPI support

--disable-xmlwriter           XMLWriter support

--with-xsl                    xsl support

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值