internals:windows:compiler

This is an old revision of the document!


Supported compilers to build PHP on Windows

Yes: this version is supported and we provide binaries built with this compiler

No: Not supported

Product Name 5.2.x 5.3.x 6.x 64bits (***)
Visual C++ 6 (SP6 only) Yes Yes Yes (**) No
Visual C++ 7/7.1 (2002, 2003, 2003+sp1) Yes (**) Yes (**) Yes (**) No
Visual C++ 8 (2005) Yes (**) Yes (**) Yes (**) Yes (**)
Visual C++ 9 (2008 SP1 only) Yes (**) Yes Yes Yes

(*) May be dropped before the final release

(**) Not officially supported but known to work

(***) Supported for this given compiler according to the current official support (or known to work)

Windows Compiler Versions

Visual C++ 6.0 is part of Visual Studio 6.0

This is the “legacy” compiler for Windows products. PHP will continue to support it through version 5.3 PHP 6.0 is the current EOL for Visual Studio 6.0. To use Visual C++ 6.0 to compile PHP you MUST have service pack 6 installed.

VC6 on MSDN

VC6 Service Pack 6

Visual C++ 7.0 and 7.1 is part of Visual Studio 2002/2003

The Visual Studio this came with is also called Visual Studio .NET. This is not an officially supported compiler but is known to work. It is recommended that you use the 2003 version and apply SP1 or issues may occur.

2003 SP1 Download

Visual C++ 8.0 part of Visual Studio 2005

This compiler is not an officially supported compiler but is known to work. This is available as an “express” version as well, which is free to download and use. You MUST apply SP1 if you use this product, there are known issues.

Express Version Download

Express Version SP1

Full Version SP1

Visual C++ 9.0 part of Visual Studio 2008

This compiler is officially supported. Applying Service Pack 1 is required. It is available as an “express” version which is free to download and use, the current Express Versions now have SP1 included.

Express Version Download

Full Version SP1

Note

If you are creating your setup from scratch, then please read the following notice and blogs from Microsoft regarding an issue of installing the 6.1 SDK on top of VC9 SP1 :

Installing the 6.1 SDK before installing VC9SP1 is the recommended route. After that, any additional security patches or updates can be applied.

internals/windows/compiler.1302087566.txt.gz · Last modified: 2017/09/22 13:28 (external edit)