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 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
zlib No 1.2.7 1.2.7 1.2.7
libiconv No 1.14 1.14 1.14
libxml2 No 2.7.8 2.7.8 2.7.8
ICU No 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 VC6 V8 V9
aolserver N/A N/A N/A N/A N/A
apache (1.x) 1.3.41 2008-01-19 Yes N/A N/A
apache_hooks (1.x) Yes N/A N/A
apache2handler Yes TbD Yes
apache2filter Yes TbD Yes
apache2-2handler Yes TbD TbD
apache2-2filter Yes TbD TbD
clibundledN/AN/A Yes Yes Yes
fastcgi/cgibundledN/AN/A Yes Yes Yes
embedbundledN/AN/A Yes Yes Yes
isapiIIS - in Microsoft SDKN/AN/A Yes Yes Yes
nsapi Yes TbD TbD
pi3web Yes TbD TbD

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

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

Library Deps
libxml2 libiconv
libxslt libxml2, libiconv
libcurl libssh2, openssl, zlib
libssh2 openssl, zlib

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
libxmp 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.1348230637.txt.gz · Last modified: 2017/09/22 13:28 (external edit)