From: Christian Wenz Date: Tue, 9 Jun 2015 08:40:36 +0000 (+0200) Subject: Fix #69781: phpinfo() reports Professional Editions of Windows 7/8/8.1/10 as "Business" X-Git-Tag: php-5.5.27RC1~9^2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c8136654d59303750fa5dc20907bda0a6307ea7;p=php Fix #69781: phpinfo() reports Professional Editions of Windows 7/8/8.1/10 as "Business" --- diff --git a/ext/standard/info.c b/ext/standard/info.c index 82b6bf8b48..d170f8a345 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -404,10 +404,25 @@ char* php_get_windows_name() sub = "Enterprise Edition"; break; case PRODUCT_BUSINESS: - sub = "Business Edition"; + if ((osvi.dwMajorVersion > 6) || (osvi.dwMajorVersion == 6 && osvi.dwMinorVersion > 0)) { + sub = "Professional Edition"; + } else { + sub = "Business Edition"; + } + break; + case PRODUCT_BUSINESS_N: + if ((osvi.dwMajorVersion > 6) || (osvi.dwMajorVersion == 6 && osvi.dwMinorVersion > 0)) { + sub = "Professional N Edition"; + } else { + sub = "Business N Edition"; + } break; case PRODUCT_STARTER: - sub = "Starter Edition"; + if ((osvi.dwMajorVersion > 6) || (osvi.dwMajorVersion == 6 && osvi.dwMinorVersion > 0)) { + sub = "Starter N Edition"; + } else { + sub = "Starter Edition"; + } break; case PRODUCT_CLUSTER_SERVER: sub = "Cluster Server Edition";