Bug #69434 [Opn]: php_uname('m') reports wrong machine type

From: Date: Mon, 13 Apr 2015 07:58:56 +0000
Subject: Bug #69434 [Opn]: php_uname('m') reports wrong machine type
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192008@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69434&edit=1

 ID:                 69434
 User updated by:    tm8544 at hotmail dot com
 Reported by:        tm8544 at hotmail dot com
 Summary:            php_uname('m') reports wrong machine type
 Status:             Open
 Type:               Bug
 Package:            *General Issues
 Operating System:   Windows 7 x64
 PHP Version:        5.6.7
 Block user comment: N
 Private report:     N

 New Comment:

SYSTEM_INFO structure
PROCESSOR_ARCHITECTURE_AMD64 stands for x64 (AMD or Intel)

I suggest that instead of reporting "AMD64" PHP_uname('m') would report
"x64".


Previous Comments:
------------------------------------------------------------------------
[2015-04-13 07:17:13] tm8544 at hotmail dot com

Description:
------------
PHP_uname('m') gives wrong machine type.
In my case, processor is Intel Pentium 4, but PHP_uname('m')gives AMD64.




Test script:
---------------
<?php
echo php_uname('m');
?>




------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=69434&edit=1


Thread (7 messages)

« previous php.bugs (#192008) next »