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

Remove detection of unsupported Windows versions (GH-15399)

Windows 2008 and Vista are no longer supported as of PHP 7.2.0, and
Windows 2008 R2 and Windows 7 are no longer supported as of PHP 8.3.0.
Therefore we remove the respective detection code, and assert that
these versions can no longer be used.
This commit is contained in:
Christoph M. Becker
2024-08-14 19:52:47 +02:00
committed by GitHub
parent d2810f5757
commit 390088bf55

View File

@@ -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