diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2020-08-06 18:57:18 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2020-08-22 12:42:34 +0200 |
commit | e6044d4455d7fbaced7f3a6ac28172d963017e51 (patch) | |
tree | 31a91bbbc78709a3c339680231188a2558846b5e /php.ini-production | |
parent | 969a432fd8b34a0ec4e48e903370f0659aef6b04 (diff) | |
download | php-git-e6044d4455d7fbaced7f3a6ac28172d963017e51.tar.gz |
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
Diffstat (limited to 'php.ini-production')
-rw-r--r-- | php.ini-production | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/php.ini-production b/php.ini-production index 61960ef807..47a5c5e13b 100644 --- a/php.ini-production +++ b/php.ini-production @@ -1618,6 +1618,10 @@ zend.assertions = -1 ; Default: system ANSI code page ;com.code_page= +; The version of the .NET framework to use. 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". +;com.dotnet_version= + [mbstring] ; language for internal character representation. ; This affects mb_send_mail() and mbstring.detect_order. |