diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2008-03-02 15:36:09 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2008-03-02 15:36:09 +0000 |
commit | c4d4183f968d98e73ccc9b316f8610809ca85875 (patch) | |
tree | 2483f1bb6ebc66c3ea8064d43f49c436857ac65f | |
parent | 73550dd6b5c008d09248d629bb27c50d44bf8520 (diff) | |
download | php-git-c4d4183f968d98e73ccc9b316f8610809ca85875.tar.gz |
MFB: Fixed bug #44306 (Better detection of MIPS processors on Windows)
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | ext/standard/info.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 : |