1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Add Windows Server 2025 build number

Closes GH-16838.
This commit is contained in:
David Warner
2024-11-17 22:21:08 +11:00
committed by Christoph M. Becker
parent 4c5710579a
commit f086eaa7b8
2 changed files with 4 additions and 1 deletions

1
NEWS
View File

@@ -17,6 +17,7 @@ PHP NEWS
- Windows:
. Fixed bug GH-16849 (Error dialog causes process to hang). (cmb)
. Windows Server 2025 is now properly reported. (cmb)
21 Nov 2024, PHP 8.4.1

View File

@@ -271,7 +271,9 @@ static char* php_get_windows_name()
major = "Windows 10";
}
} else {
if (osvi.dwBuildNumber >= 20348) {
if (osvi.dwBuildNumber >= 26100) {
major = "Windows Server 2025";
} else if (osvi.dwBuildNumber >= 20348) {
major = "Windows Server 2022";
} else if (osvi.dwBuildNumber >= 19042) {
major = "Windows Server, version 20H2";