|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-02 15:36 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 12:00:02 2025 UTC |
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