From: Ilia Alshanetsky Date: Sun, 2 Mar 2008 15:36:09 +0000 (+0000) Subject: MFB: Fixed bug #44306 (Better detection of MIPS processors on Windows) X-Git-Tag: php-5.2.6RC2~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4d4183f968d98e73ccc9b316f8610809ca85875;p=php MFB: Fixed bug #44306 (Better detection of MIPS processors on Windows) --- diff --git a/NEWS b/NEWS index a66d54c44c..e8789d9106 100644 --- 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) diff --git a/ext/standard/info.c b/ext/standard/info.c index c96f4c6df5..cf182d8a1c 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -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 :