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 Patch for *General Issues Bug #52461

Patch version 2010-07-27 18:04 UTC

Return to Bug #52461 | Download this patch
This patch is obsolete

Obsoleted by patches:

Patch Revisions:

Developer: virsacer@web.de

--- php-5.3.3/ext/standard/info.c	2010-05-30 08:46:46.000000000 +0200
+++ php-5.3.3/ext/standard/info.c	2010-07-27 19:56:06.426000000 +0200
@@ -156,8 +156,9 @@
 
 			}
 
+			PUTS("$");
 			PUTS(name);
-			PUTS("[\"");
+			PUTS("['");
 			
 			switch (zend_hash_get_current_key_ex(Z_ARRVAL_PP(data), &string_key, &string_len, &num_key, 0, NULL)) {
 				case HASH_KEY_IS_STRING:
@@ -171,7 +172,7 @@
 					php_printf("%ld", num_key);
 					break;
 			}
-			PUTS("\"]");
+			PUTS("']");
 			if (!sapi_module.phpinfo_as_text) {
 				PUTS("</td><td class=\"v\">");
 			} else {
@@ -289,14 +290,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");
@@ -625,8 +626,8 @@
 *** none of that is needed now ***/
 
 
-	PUTS("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n");
-	PUTS("<html>");
+	PUTS("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n");
+	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 23 09:02:23 2014 UTC