Skip to content

Commit f086eaa

Browse files
Quppacmb69
authored andcommitted
Add Windows Server 2025 build number
Closes GH-16838.
1 parent 4c57105 commit f086eaa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ PHP NEWS
1717

1818
- Windows:
1919
. Fixed bug GH-16849 (Error dialog causes process to hang). (cmb)
20+
. Windows Server 2025 is now properly reported. (cmb)
2021

2122
21 Nov 2024, PHP 8.4.1
2223

ext/standard/info.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ static char* php_get_windows_name()
271271
major = "Windows 10";
272272
}
273273
} else {
274-
if (osvi.dwBuildNumber >= 20348) {
274+
if (osvi.dwBuildNumber >= 26100) {
275+
major = "Windows Server 2025";
276+
} else if (osvi.dwBuildNumber >= 20348) {
275277
major = "Windows Server 2022";
276278
} else if (osvi.dwBuildNumber >= 19042) {
277279
major = "Windows Server, version 20H2";

0 commit comments

Comments
 (0)