From: Anatol Belski Date: Sat, 3 Oct 2015 08:44:43 +0000 (+0200) Subject: fix win10 support X-Git-Tag: php-5.6.15RC1~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83bef0ef83f645a6b84ba77b7c69ecdbad68f0a1;p=php fix win10 support dwMajorVersion == 10 there, and generally this check is obsolete as we don't support dwMajorVersion < 6 since 5.5 --- diff --git a/ext/opcache/shared_alloc_win32.c b/ext/opcache/shared_alloc_win32.c index ae8917dcf5..cf4bce005d 100644 --- a/ext/opcache/shared_alloc_win32.c +++ b/ext/opcache/shared_alloc_win32.c @@ -266,7 +266,7 @@ static int create_segments(size_t requested_size, zend_shared_segment ***shared_ GetSystemInfo(&si); /* Are we running Vista ? */ - if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT && osvi.dwMajorVersion == 6) { + if (osvi.dwPlatformId == VER_PLATFORM_WIN32_NT && osvi.dwMajorVersion >= 6) { wanted_mapping_base = vista_mapping_base_set; } } while (0);