php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #52461
Patch New_patch revision 2010-12-08 15:29 UTC by virsacer at web dot de
Patch Patch revision 2010-07-27 18:04 UTC by virsacer at web dot de

Patch New_patch for *General Issues Bug #52461

Patch version 2010-12-08 15:29 UTC

Return to Bug #52461 | Download this patch
This patch renders other patches obsolete

Obsolete patches:

Patch Revisions:

Developer: virsacer@web.de

--- php/ext/standard/info.c	Sun May 30 08:46:46 2010
+++ php/ext/standard/info.c	Wed Dec 08 16:23:16 2010
@@ -289,14 +289,14 @@
 					major = "Windows Server 2008";
 				}
 			} else
-			if ( osvi.dwMinorVersion == 2 ) {
+			if ( osvi.dwMinorVersion == 1 ) {
 				if( osvi.wProductType == VER_NT_WORKSTATION )  {
 					major = "Windows 7";
 				} else {
 					major = "Windows Server 2008 R2";
 				}
 			} else {
-				major = "Unknow Windows version";
+				major = "Unknown Windows version";
 			}
 
 			pGPI = (PGPI) GetProcAddress(GetModuleHandle("kernel32.dll"), "GetProductInfo");
@@ -626,7 +626,7 @@
 
 
 	PUTS("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n");
-	PUTS("<html>");
+	PUTS("<html xmlns=\"http://www.w3.org/1999/xhtml\">\n");
 	PUTS("<head>\n");
 	php_info_print_style(TSRMLS_C);
 	PUTS("<title>phpinfo()</title>");
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Wed Apr 16 18:01:53 2014 UTC