Skip to content

Remove detection of unsupported Windows versions #15399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2024
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: 2 additions & 13 deletions ext/standard/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,19 +296,8 @@ static char* php_get_windows_name()
}
} else if (VER_PLATFORM_WIN32_NT==osvi.dwPlatformId && osvi.dwMajorVersion >= 6) {
if (osvi.dwMajorVersion == 6) {
if (osvi.dwMinorVersion == 0) {
if (osvi.wProductType == VER_NT_WORKSTATION) {
major = "Windows Vista";
} else {
major = "Windows Server 2008";
}
} else if (osvi.dwMinorVersion == 1) {
if (osvi.wProductType == VER_NT_WORKSTATION) {
major = "Windows 7";
} else {
major = "Windows Server 2008 R2";
}
} else if (osvi.dwMinorVersion == 2) {
ZEND_ASSERT(osvi.dwMinorVersion >= 2);
if (osvi.dwMinorVersion == 2) {
/* could be Windows 8/Windows Server 2012, could be Windows 8.1/Windows Server 2012 R2 */
/* XXX and one more X - the above comment is true if no manifest is used for two cases:
- if the PHP build doesn't use the correct manifest
Expand Down
Loading