This is an old revision of the document!

Libraries Needed to Build on Windows

Libraries are available for download at . The sources prepared to be built for PHP are available under


Library name Project Bundled 5.3 5.4 5.5 master
bindlib No Needed only for PHP ⇐ 5.2 or some specific extensions
pcre (bundled) ext/pcre/pcrelib Yes 8.12 8.12 8.12 8.12
zlib No 1.2.7 1.2.7 1.2.7 1.2.7
libiconv No 1.14 1.14 1.14 1.14
libxml2 No 2.7.8 2.7.8 2.7.8 2.7.8
ICU No 49.1.2 49.1.2 49.1.2 49.1.2


SAPI's are reliant on third party libraries to link against, and since client and server compiler versions should match, these are not distributed by PHP (we are not in the server business)

SAPI server version released V9 V11
aolserver N/A N/A N/A N/A
apache (1.x) 1.3.41 2008-01-19 N/A N/A
apache_hooks (1.x) N/A N/A
apache2handler Yes N/A
apache2filter Yes N/A
apache2-2handler Yes N/A
apache2-2filter Yes N/A
clibundledN/AN/A Yes Yes
fastcgi/cgibundledN/AN/A Yes Yes
embedbundledN/AN/A Yes Yes
isapiIIS - in Microsoft SDKN/AN/A Yes N/A
nsapi Yes N/A
pi3web Yes N/A

Aolserver does not provide binaries, and so is not currently being built for PHP

Libraries for the core extensions

Libraries are available for download at

Library name Project Bundled 5.3 5.4 5.5 master VC9 VC11
bzip2 No 1.0.6 1.0.6 1.0.6 1.0.6 Yes Yes
libcurl No 7.27.0 7.27.0 7.27.0 7.27.0 Yes N/A
libssh2 No 1.4.2 1.4.2 1.4.2 1.4.2 Yes Yes
Berkley DB No 3.1.17 TbD N/A N/A Yes N/A
glib No Yes N/A
qdbm No N/A 1.8.77 1.8.77 1.8.77 Yes N/A
libJPEG No 8d 8d 8d 8d Yes Yes
libPNG No 1.2.46 1.2.46 1.2.46 1.2.46 Yes Yes
Freetype No 2.4.3 2.4.3 2.4.3 2.4.3 Yes Yes
libxpm No 3.5.7 3.5.7 3.5.7 3.5.7 Yes Yes
libintl No ? 0.17 0.17 0.17 Yes N/A
libgmp No see MPIR
mpir No 1.3.1 2.5.1 2.5.1 2.5.1 Yes N/A
libpq No 8.3.6 8.3.6 9.2.2 9.2.2 Yes Yes
cclient No 2007e 2007e 2007f 2007f Yes Yes
ibase No ? ? ? ? Yes N/A
fbclient No 2.5.0 2.5.0 2.5.0 2.5.0 Yes N/A
ldap No 2004 2.3.42 2.3.42 2.3.42 Yes N/A
libmcrypt No 2.5.8 2.5.8 2.5.8 2.5.8 Yes N/A
freetds No ? ? ? ? Yes N/A
ming No 0.3beta1 N/A N/A N/A Yes N/A
mysqlnd Yes 5.1.4 5.1.4 5.1.4 5.1.4 Yes N/A
libmysql No 5.0.51a N/A N/A N/A Yes N/A
Openssl No 0.9.8x 0.9.8x 0.9.8x 0.9.8x Yes Yes
aspell No N/A N/A N/A N/A N/A N/A
ucd-snmp No 4.2.3 4.2.3 4.2.3 4.2.3 Yes N/A
tidy No 2007/08/15 2009/03/25 2009/03/25 2009/03/25 Yes N/A
libxslt No 1.1.27 1.1.27 1.1.27 1.1.27 Yes Yes
libmhash No 20020524 N/A N/A N/A Yes N/A
odbc32.lib No N/A N/A N/A N/A Yes Yes
oleaut32.lib No N/A N/A N/A N/A Yes Yes
libbcmath N/A Yes N/A N/A N/A N/A N/A N/A
libinifile N/A Yes N/A N/A N/A N/A N/A N/A
libflatfile N/A Yes N/A N/A N/A N/A N/A N/A
libcdb N/A Yes N/A N/A N/A N/A N/A N/A
regex N/A Yes N/A N/A N/A N/A N/A N/A
oniguruma Yes 4.4.4 4.4.4 4.4.4 4.4.4 Yes Yes
libmbfl N/A Yes 1.1.0 1.1.0 1.1.0 1.1.0 Yes N/A
libxmlrpc N/A Yes N/A N/A N/A N/A N/A N/A
sqlite2 Yes 2.8.17 2.8.17 2.8.17 2.8.17 Yes Yes
sqlite3 Yes Yes Yes
tmezonedb Yes N/A N/A N/A N/A Yes Yes
libvpx No N/A N/A 1.1.0 1.1.0 Yes Yes

Libraries used by our windows ports of the different libraries (not when building only php)

Libraries are available for download at

Library name Project Bundled Version for 5.2.x Version for 5.3.x Version for 6.x 6.0 2k5 2k8 64bits Debug
dirent No 20080629 20080629 20080629 Y Y Y Y Y

Third Party Libraries

Third party libraries are not available in our repositories. The reason are the miscellaneous restricted licenses and non open sources code. However, we are authorized to distribute them with our PHP releases but not their SDK.

Library dependencies

Extensions and their libraries

Extension Library name Project Bundled
bcmath libbcmath Yes
bz2 bzip2 No
com_donet oleaut32.lib No
curl libcurl No
date timezonedb Yes
dba Berkley DB No
qdbm No
libinifile Yes
libflatfile Yes
libcdb Yes
ereg regex N/A Yes
gd libJPEG No
libPNG No
Freetype No
libxpm No
libvpx No
gettext libintl No
gmp libgmp or mpir No
ibm_db2 ibm_db2 Yes
imap cclient No
interbase ibase No
intl icu No
pdo_firebird fbclient No
ldap ldap No
mbstring oniguruma Yes
libmbfl N/A Yes
mcrypt libmcrypt No
mhash libmhash No
ming ming No
mssql freetds No
pdo_mysql mysqlnd Yes
libmysql No
mysqli mysqlnd Yes
libmysql No
mysql mysqlnd Yes
libmysql No
oci8 oci8 Yes
pdo_odbc odbc32.lib No
odbc odbc32.lib No
openssl Openssl No
pdo_sqlite sqlite Yes
sqlite sqlite Yes
pgsql/pdo_pgsql libpg No
pgsql libpg No
pspell aspell No
snmp ucd-snmp No
tidy tidy No
xmlrpc libxmlrpc Yes
xsl libxslt No

Extensions using mandatory libs

  • dom
  • iconv
  • libxml
  • pcre
  • simplexml
  • soap
  • xml
  • xmlreader
  • xmlwriter
  • zlib
  • zip

Extensions not needing libraries

  • calendar
  • ctype
  • dbase
  • filter
  • ftp
  • json
  • mime-magic (does require file set in ini)
  • pcntl (currently not available on windows)
  • pdo (core)
  • phar (although it does depend on other extensions)
  • posix (never available on windows)
  • recode (library not available on windows)
  • readline (library not available on Windows)
  • session
  • shmop
  • skeleton
  • sockets
  • spl
  • standard
  • sybase (old old not available on windows)
  • sysvmsg (currently not available on windows)
  • sysvsem (currently not available on windows)
  • sysvshm (currently not available on windows)
  • tokenizer
  • wddx

PECL Extensions

General Compiling Guidelines

Any makefiles, project files, source, .rc files - basically anything used to compile a library for PHP should be bundled into a source distribution.

dlls should have a .rc file with a minimum of the version and compiler used

Because windows doesn't differentiate between static libs and dll stub libs (both end in .lib) use a _a suffix for a static lib (libxml2_a.lib)

Any debug version of a library or dll should have a _debug suffix

internals/windows/libs.1358705741.txt.gz · Last modified: 2013/01/20 19:15 by ab