# Windows builds of PHP 7.4+ use Visual Studio 2019

- Thread: https://externals.io/message/105850
- Original archive: https://news-web.php.net/php.internals/105850
- Started by Christoph M. Becker on 2019-06-06T12:11:39+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #105850 — Christoph M. Becker — 2019-06-06T12:11:39+00:00

URL: https://externals.io/message/105850#105850

Hi,

I like to inform you, that the official Windows builds of PHP 7.4 and
master (available from windows.php.net; currently only snapshot builds,
of course) are done with Visual Studio 2019.  While it is still possible
to build these PHP versions with Visual Studio 2017, this is no longer
tested.

This also means a small but important change, namely that we are no
longer using the "vc" prefix (e.g. "vc14", "vc15") to refer to *new*
Visual Studio versions, but rather "vs" (i.e. "vs16").  The detailed
reasoning is explained in the post titled "Visual Studio 2019
Builds"[1].  Recent beta versions of the PHP SDK are supposed to fully
support this naming change already (and particularly the renaming of the
PHP_SDK_VC environment variable to PHP_SDK_VS).  You may have to adapt
custom tooling accordingly, though.

Thanks,
Christoph

[1] <https://windows.php.net/

---

## #105853 — Steffen via internals — 2019-06-06T13:04:54+00:00

URL: https://externals.io/message/105850#105853

Apache server VS16 builds  at https://www.apachelounge.com/download/ 


Christoph M. Becker <cmbecker69@gmx.de> wrote:
> Hi,
> 
> I like to inform you, that the official Windows builds of PHP 7.4 and
> master (available from windows.php.net; currently only snapshot builds,
> of course) are done with Visual Studio 2019.  While it is still possible
> to build these PHP versions with Visual Studio 2017, this is no longer
> tested.
> 
> This also means a small but important change, namely that we are no
> longer using the "vc" prefix (e.g. "vc14", "vc15") to refer to *new*
> Visual Studio versions, but rather "vs" (i.e. "vs16").  The detailed
> reasoning is explained in the post titled "Visual Studio 2019
> Builds"[1].  Recent beta versions of the PHP SDK are supposed to fully
> support this naming change already (and particularly the renaming of the
> PHP_SDK_VC environment variable to PHP_SDK_VS).  You may have to adapt
> custom tooling accordingly, though.
> 
> Thanks,
> Christoph
> 
> [1] <https://windows.php.net/

---

## #106687 — Christoph M. Becker — 2019-08-21T12:23:51+00:00

URL: https://externals.io/message/105850#106687 · In reply to: #105850

Hi all!



> I like to inform you, that the official Windows builds of PHP 7.4 and
> master (available from windows.php.net; currently only snapshot builds,
> of course) are done with Visual Studio 2019.  While it is still possible
> to build these PHP versions with Visual Studio 2017, this is no longer
> tested.
>
> This also means a small but important change, namely that we are no
> longer using the "vc" prefix (e.g. "vc14", "vc15") to refer to *new*
> Visual Studio versions, but rather "vs" (i.e. "vs16").  The detailed
> reasoning is explained in the post titled "Visual Studio 2019
> Builds"[1].  Recent beta versions of the PHP SDK are supposed to fully
> support this naming change already (and particularly the renaming of the
> PHP_SDK_VC environment variable to PHP_SDK_VS).  You may have to adapt
> custom tooling accordingly, though.

I like to inform you, that the PHP for Windows team has decided to
switch back to Visual Studio 2017 for PHP 7.4.  For the reasoning and
further details see <https://windows.php.net/#news-2019-08-21-1>.

Thanks,
Christoph

---

## #106853 — bjorn.x.larsson@telia.com — 2019-09-04T13:23:13+00:00

URL: https://externals.io/message/105850#106853 · In reply to: #105850

Den 2019-06-06 kl. 14:11, skrev Christoph M. Becker:
> Hi,
>
> I like to inform you, that the official Windows builds of PHP 7.4 and
> master (available from windows.php.net; currently only snapshot builds,
> of course) are done with Visual Studio 2019.  While it is still possible
> to build these PHP versions with Visual Studio 2017, this is no longer
> tested.
>
> This also means a small but important change, namely that we are no
> longer using the "vc" prefix (e.g. "vc14", "vc15") to refer to *new*
> Visual Studio versions, but rather "vs" (i.e. "vs16").  The detailed
> reasoning is explained in the post titled "Visual Studio 2019
> Builds"[1].  Recent beta versions of the PHP SDK are supposed to fully
> support this naming change already (and particularly the renaming of the
> PHP_SDK_VC environment variable to PHP_SDK_VS).  You may have to adapt
> custom tooling accordingly, though.
>
> Thanks,
> Christoph
>
> [1] <https://windows.php.net/>

Hi,

This is a welcome change. For beta 3 and earlier I got the error message:
$ php -v
PHP Warning:  'vcruntime140.dll' 14.11 is not compatible with this PHP 
build linked with 14.21 in Unknown on line 0

Now it works out of the box on my win 8.1 machien!
$ php -v
PHP 7.4.0-dev (cli) (built: Sep  4 2019 09:49:12) ( NTS Visual C++ 2017 
x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies

r//Björn L

---

## #106855 — Christoph M. Becker — 2019-09-04T13:46:19+00:00

URL: https://externals.io/message/105850#106855 · In reply to: #106853

> Den 2019-06-06 kl. 14:11, skrev Christoph M. Becker:
>
> > […]
>
> This is a welcome change. For beta 3 and earlier I got the error message:
> $ php -v
> PHP Warning:  'vcruntime140.dll' 14.11 is not compatible with this PHP
> build linked with 14.21 in Unknown on line 0
>
> Now it works out of the box on my win 8.1 machien!
> $ php -v
> PHP 7.4.0-dev (cli) (built: Sep  4 2019 09:49:12) ( NTS Visual C++ 2017
> x64 )
> Copyright (c) The PHP Group
> Zend Engine v3.4.0-dev, Copyright (c) Zend Technologies

You could (and still can) install the Visual C++ Redistributable for
Visual Studio 2015-2019, though:

<https://aka.ms/vs/16/release/VC_redist.x64.exe>
<https://aka.ms/vs/16/release/VC_redist.x86.exe>

--
Christoph M. Becker
