From 83b69f4034472196234eb17cc147e652b4233675 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 21 Jul 2011 14:49:55 +0000 Subject: [PATCH] - Fixed bug #55258 (Windows Version Detecting Error) (already fixed in trunk/5.4) --- NEWS | 2 ++ ext/standard/info.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index df5f277fff..fdcbf0f685 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,8 @@ PHP NEWS - Core . Removed warning when argument of is_a() or is_subclass_of() is not a known class. (Stas) + . Fixed bug #55258 (Windows Version Detecting Error). + ( xiaomao5 at live dot com, Pierre) . Fixed bug #55187 (readlink returns weird characters when false result). (Pierre) . Fixed bug #55014 (Compile failure due to improper use of ctime_r()). (Ilia) diff --git a/ext/standard/info.c b/ext/standard/info.c index 09fc2346e3..90ae34f0bc 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -289,7 +289,7 @@ char* php_get_windows_name() major = "Windows Server 2008"; } } else - if ( osvi.dwMinorVersion == 2 ) { + if ( osvi.dwMinorVersion == 1 ) { if( osvi.wProductType == VER_NT_WORKSTATION ) { major = "Windows 7"; } else { -- 2.40.0