From c4d4183f968d98e73ccc9b316f8610809ca85875 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 2 Mar 2008 15:36:09 +0000 Subject: [PATCH] MFB: Fixed bug #44306 (Better detection of MIPS processors on Windows) --- NEWS | 1 + ext/standard/info.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 : -- 2.50.1