From e6044d4455d7fbaced7f3a6ac28172d963017e51 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Thu, 6 Aug 2020 18:57:18 +0200 Subject: Fix #55847: DOTNET .NET 4.0 GAC new location If we do not specify the exact version of the .NET framework to use, the default CLR is loaded, which is typically CLR 2, which is very old. Therefore, we introduce a `PHP_INI_SYSTEM` setting, which allows users to choose the desired .NET framework version. The value of the setting are the first three parts of the framework's version number, separated by dots, and prefixed with "v", e.g. "v4.0.30319". If the value of the INI setting is `NULL` (the default) or an empty string, the default CLR is used. Internally, we switch from the most generic `CoCreateInstance()` to `CorBindToRuntime()` which is implemented in mscoree.dll. To avoid the hard dependency to that library, we load dynamically. So this fix is supposed to be fully backwards compatible. Closes GH-5949 --- UPGRADING | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'UPGRADING') diff --git a/UPGRADING b/UPGRADING index 9cb89cf969..2412b60865 100644 --- a/UPGRADING +++ b/UPGRADING @@ -1048,6 +1048,10 @@ PHP 8.0 UPGRADE NOTES . New INI directive to set the maximum string length in an argument of a stringified stack strace. +- com.dotnet_version + . New INI directive to choose the version of the .NET framework to use for + dotnet objects. + ======================================== 12. Windows Support ======================================== -- cgit v1.2.1