summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2008-03-02 15:36:09 +0000
committerIlia Alshanetsky <iliaa@php.net>2008-03-02 15:36:09 +0000
commitc4d4183f968d98e73ccc9b316f8610809ca85875 (patch)
tree2483f1bb6ebc66c3ea8064d43f49c436857ac65f
parent73550dd6b5c008d09248d629bb27c50d44bf8520 (diff)
downloadphp-git-c4d4183f968d98e73ccc9b316f8610809ca85875.tar.gz
MFB: Fixed bug #44306 (Better detection of MIPS processors on Windows)
-rw-r--r--NEWS1
-rw-r--r--ext/standard/info.c2
2 files changed, 2 insertions, 1 deletions
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 :