#44306 [NEW]: bad result of php_uname('m') for MIPS architecture

From: Date: Sat, 01 Mar 2008 17:50:56 +0000
Subject: #44306 [NEW]: bad result of php_uname('m') for MIPS architecture
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-122831@lists.php.net to get a copy of this message
From:             a dot u dot savchuk at gmail dot com
Operating system: Windows (MIPS)
PHP version:      5.2.5
PHP Bug Type:     *General Issues
Bug description:  bad result of php_uname('m') for MIPS architecture

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 bug report at http://bugs.php.net/?id=44306&edit=1
-- 
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44306&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44306&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44306&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44306&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=44306&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44306&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44306&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44306&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44306&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44306&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=44306&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=44306&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44306&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44306&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44306&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44306&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44306&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44306&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44306&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44306&r=mysqlcfg


Thread (2 messages)

« previous php.bugs (#122831) next »