]> granicus.if.org Git - php/commitdiff
MFB: Fixed bug #44306 (Better detection of MIPS processors on Windows)
authorIlia Alshanetsky <iliaa@php.net>
Sun, 2 Mar 2008 15:36:09 +0000 (15:36 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 2 Mar 2008 15:36:09 +0000 (15:36 +0000)
NEWS
ext/standard/info.c

diff --git a/NEWS b/NEWS
index a66d54c44c05b63a73e5f940a1c07f6ed6ac26d6..e8789d910649fc974a3ce52c3d65707e90698272 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 PHP                                                                        NEWS
 |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 ?? Mar 2008, PHP 5.2.6
+- Fixed bug #44306 (Better detection of MIPS processors on Windows). (Ilia)
 
 27 Feb 2008, PHP 5.2.6RC1
 - Fixed security issue detailed in CVE-2008-0599. (Rasmus)
index c96f4c6df504377afbe4614c98a7418a9fbde1e6..cf182d8a1c457f908dcb9d0f654de3041019adc0 100644 (file)
@@ -277,7 +277,7 @@ PHPAPI char *php_get_uname(char mode)
                                php_uname = tmp_uname;
                                break;
                        case PROCESSOR_ARCHITECTURE_MIPS :
-                               php_uname = "MIPS R4000";
+                               snprintf(tmp_uname, sizeof(tmp_uname), "MIPS R%d000", SysInfo.wProcessorLevel);
                                php_uname = tmp_uname;
                                break;
                        case PROCESSOR_ARCHITECTURE_ALPHA :