internals:windows:compiler

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
internals:windows:compiler [2008/07/11 11:53]
pajoye
internals:windows:compiler [2019/03/31 11:29] (current)
ab
Line 1: Line 1:
 ====== Supported compilers to build PHP on Windows ====== ====== Supported compilers to build PHP on Windows ======
  
-Yes: this version is supported and we provide binaries ​build with this compiler+Yes: this version is supported and we provide binaries ​built with this compiler
  
 No: Not supported No: Not supported
  
-^ Product Name  ^ 5.2.x ^ 5.3.x ^ 6.x ^ 64bits (***) ^ +^ Product Name  ^ 5.2.x ^ 5.3.x ^ 5.4.x ^ 5.5.x ^ 5.6.x ^ 7.0.x ^ 7.1.x ^ 7.2.x ^ 7.3.x ^ 7.4.x ^ 64bits (%%***%%) ^ 
-| Visual C++ 6 | Yes | Yes | Yes(*) ​| No | +| Visual C++ 6 (SP6 only) | Yes | Yes | No | No | No | No | No | No | No | No | No | 
-| Visual C++ 7/7.1 (2003, 2003+sp1) | Yes (%%**%%) | Yes (%%**%%) | Yes (%%**%%) | No | +| Visual C++ 7/7.1 (2002, 2003, 2003+sp1) | Yes (%%**%%) | Yes (%%**%%) | No | No | No | No | No | No | No | No | No | 
-| Visual C++ (2005) | Yes (%%**%%) | Yes | Yes | Yes | +| Visual C++ 8 (2005) | Yes (%%**%%) ​| No | No | No | No | No | No | No | No | No | No | 
-| Visual C++ (2008) | Yes (%%**%%) | Yes (%%**%%)| Yes | Yes |+| Visual C++ (2008 SP1 only) | Yes (%%**%%) | Yes | Yes | Yes (%%**%%) | No | No | No | No | No | No | No 
 +| Visual C++ 11 (2012| No | No | Yes (%%**%%) | Yes | Yes | Yes (%%**%%) | No | No | No | No | Yes | 
 +| Visual C++ 14.00 (2015) | No | No | No | No | No | Yes | Yes(%%**%%) | Yes(%%**%%) |  No | No | Yes | 
 +| Visual C++ 14.10 (2017) | No | No | No | No | No | Yes(%%**%%) | Yes(%%**%%) | Yes | Yes | Yes | Yes | 
 +| Visual C++ 14.20 (2019) | No | No | No | No | No | No | No | Yes(%%**%%) | Yes(%%**%%) | Yes | Yes |
  
 (*) May be dropped before the final release (*) May be dropped before the final release
  
-(**) Not officially supported but known to work+(%%**%%) 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. 
 + 
 + ​[[http://​msdn.microsoft.com/​en-us/​library/​ms950417.aspx|VC6 on MSDN]] 
 + 
 + ​[[http://​www.microsoft.com/​downloads/​details.aspx?​FamilyID=A8494EDB-2E89-4676-A16A-5C5477CB9713&​displaylang=en|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. 
 + 
 + ​[[http://​www.microsoft.com/​downloads/​details.aspx?​familyid=69d2219f-ce82-46a5-8aec-072bd4bb955e&​displaylang=en|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. 
 + 
 + ​[[http://​www.microsoft.com/​express/​2005/​|Express Version Download]] 
 + 
 + ​[[http://​www.microsoft.com/​downloads/​details.aspx?​FamilyID=7b0b0339-613a-46e6-ab4d-080d4d4a8c4e&​displaylang=en|Express Version SP1]] 
 + 
 + ​[[http://​www.microsoft.com/​downloads/​details.aspx?​familyid=bb4a75ab-e2d4-4c96-b39d-37baf6b5b1dc&​displaylang=en|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. ​  
 + 
 +[[http://​www.microsoft.com/​express/​download/​|Express Version Download]] 
 + 
 +[[http://​www.microsoft.com/​downloads/​details.aspx?​FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&​displaylang=en|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 : 
 +  - [[http://​www.microsoft.com/​downloads/​en/​details.aspx?​FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&​displaylang=en|Windows SDK for Windows Server 2008 and .NET Framework 3.5]] 
 +  - [[http://​blogs.msdn.com/​b/​windowssdk/​archive/​2009/​08/​07/​windows-sdk-for-server-2008-v6-1-overwrites-vs2008-sp1-crt-files.aspx|Windows SDK for Server 2008 (v6.1) overwrites VS2008 SP1 CRT files]] 
 +  - [[http://​blogs.msdn.com/​b/​windowssdk/​archive/​2009/​08/​07/​installing-windows-sdk-for-server-2008-v6-1-after-vs2008-sp1-causes-conflicts-with-security-update-kb971092.aspx|Installing Windows SDK for Server 2008 (v6.1) after VS2008 SP1 causes conflicts with Security Update (KB971092)]] 
 + 
 +Installing the 6.1 SDK before installing VC9SP1 is the recommended route. After that, any additional security patches or updates can be applied. 
 + 
 +====  Visual C++ 11.0 part of Visual Studio 2012 ==== 
 + 
 +This compiler is officially supported for PHP 5.5+.  It is available as an "​express"​ version which is free to download and use.  There are multiple versions available, you will want the one called "​Visual Studio Express 2012 for Windows Desktop"​. 
 + 
 +[[http://​www.microsoft.com/​visualstudio/​eng#​downloads|Visual Studio 2012 Download]] 
 + 
 +====  Visual C++ 14.00 part of Visual Studio 2015 ==== 
 + 
 +This compiler is officially supported for PHP 7.0+.  It is available as a Community Edition which is free to download and use for open source projects, academic research, training, education and small professional teams. 
 + 
 +[[https://​visualstudio.microsoft.com/​vs/​older-downloads/​|Visual Studio 2015 Download]] 
 + 
 + 
 +====  Visual C++ 14.10 part of Visual Studio 2017 ==== 
 + 
 +This compiler is officially supported for PHP 7.2 and 7.3.  It is available as a Community Edition which is free to download and use for open source projects, academic research, training, education and small professional teams. 
 + 
 +[[https://​visualstudio.microsoft.com/​downloads/​|Visual Studio 2017 Download]] 
 + 
 + 
 +====  Visual C++ 14.20 part of Visual Studio 2019 ==== 
 + 
 +This compiler is officially supported for PHP 7.4+.  It is available as a Community Edition which is free to download and use for open source projects, academic research, training, education and small professional teams. 
 + 
 +[[https://​visualstudio.microsoft.com/​downloads/​|Visual Studio 2019 Download]]
  
- (***) Supported for this given compiler according to the current official support (or known to work) 
internals/windows/compiler.1215777230.txt.gz · Last modified: 2017/09/22 13:28 (external edit)