#44306 [Opn->Csd]: bad result of php_uname('m') for MIPS architecture
| From: | iliaa@php.net | Date: | Sun, 02 Mar 2008 15:36:29 +0000 |
| Subject: | #44306 [Opn->Csd]: bad result of php_uname('m') for MIPS architecture | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122843@lists.php.net to get a copy of this message | ||
ID: 44306
Updated by: iliaa@php.net
Reported By: a dot u dot savchuk at gmail dot com
-Status: Open
+Status: Closed
Bug Type: *General Issues
Operating System: Windows (MIPS)
PHP Version: 5.2.5
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-03-01 17:50:56] a dot u dot savchuk at gmail dot com
Description:
------------
bad result of php_uname('m') for MIPS architecture
As i lokk in source ext/standart/info.c
there is strange code:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
PHPAPI char *php_get_uname(char mode)
{
char *php_uname;
char tmp_uname[256];
#ifdef PHP_WIN32
<<<
<<< skipped lines
<<<
} else if (mode == 'm') {
switch (SysInfo.wProcessorArchitecture) {
case PROCESSOR_ARCHITECTURE_INTEL :
snprintf(tmp_uname, sizeof(tmp_uname), "i%d",
SysInfo.dwProcessorType);
php_uname = tmp_uname;
break;
case PROCESSOR_ARCHITECTURE_MIPS :
php_uname = "MIPS R4000";
php_uname = tmp_uname;
break;
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Reproduce code:
---------------
none
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44306&edit=1