Skip to content
This repository was archived by the owner on Mar 9, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions Server/Config/PHPConfigHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -898,13 +898,11 @@ private void MakeRecommendedPHPIniChanges(string version)
var extensions = new List<PHPIniExtension>
{
new PHPIniExtension("php_curl.dll", true),
new PHPIniExtension("php_gd2.dll", true),
new PHPIniExtension("php_gettext.dll", true),
new PHPIniExtension("php_mysqli.dll", true),
new PHPIniExtension("php_mbstring.dll", true),
new PHPIniExtension("php_openssl.dll", true),
new PHPIniExtension("php_soap.dll", true),
new PHPIniExtension("php_xmlrpc.dll", true)
};

if (new Version(version) < new Version("7.0"))
Expand All @@ -913,6 +911,18 @@ private void MakeRecommendedPHPIniChanges(string version)
extensions.Add(new PHPIniExtension("php_mysql.dll", true));
}

if (new Version(version) < new Version("8.0"))
{
// IMPORTANT: keep obsolete setting in old release.
extensions.Add(new PHPIniExtension("php_xmlrpc.dll", true));
extensions.Add(new PHPIniExtension("php_gd2.dll", true));
}

if (new Version(version) >= new Version("8.0"))
{
extensions.Add(new PHPIniExtension("php_gd.dll", true));
}

file.UpdateExtensions(extensions);
file.AddOrUpdateSettings(settings);
file.Save(PHPIniFilePath);
Expand Down Expand Up @@ -1669,6 +1679,7 @@ private void ValidateLifecycle(PHPConfigInfo info)
{ "7.3", new PhpVersion("7.3", new DateTime(2021, 12, 6), new Version(14, 11)) },
{ "7.4", new PhpVersion("7.4", new DateTime(2022, 11, 28), new Version(14, 11)) },
{ "8.0", new PhpVersion("8.0", new DateTime(2023, 11, 26), new Version(14, 21)) },
{ "8.1", new PhpVersion("8.1", new DateTime(2024, 11, 25), new Version(14, 21)) },
};

var detected = new Version(info.Version);
Expand Down