Bug->Doc #69434 [Opn]: php_uname('m') reports unexpected machine type
| From: | cmb@php.net | Date: | Mon, 09 Aug 2021 14:33:51 +0000 |
| Subject: | Bug->Doc #69434 [Opn]: php_uname('m') reports unexpected machine type | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-19056@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
Updated by: cmb@php.net
Reported by: tm8544 at hotmail dot com
-Summary: php_uname('m') reports wrong machine type
+Summary: php_uname('m') reports unexpected machine type
Status: Open
-Type: Bug
+Type: Documentation Problem
Package: *General Issues
-Operating System: Windows 7 x64
+Operating System: Windows
PHP Version: 5.6.7
Block user comment: N
Private report: N
New Comment:
> To change it would be a considerable BC break though,
Right. Changing to doc problem.
> Machine is actually Windows NT 10.0; WOW64
No. WOW64 means that the browser is a 32bit application running
on a 64bit Windows.
Previous Comments:
------------------------------------------------------------------------
[2016-03-28 23:00:20] walts at jtechmedical dot com
I should mention the PHP version is 5.5.30
------------------------------------------------------------------------
[2016-03-28 22:58:51] walts at jtechmedical dot com
I'm also seeing php_uname() reporting the wrong machine information
example output from php_uname()
Windows NT ELITE800 6.2 build 9200 (Windows 8 Professional Edition) i586
vs as reported from the substring in the user agent
Windows NT 10.0; WOW64
Machine is actually Windows NT 10.0; WOW64 so it seems something isn't reporting or parsing
correctly in php_uname().
------------------------------------------------------------------------
[2015-04-13 09:24:01] ab@php.net
IMHO this shouldn't be changed. AMD64 is historically a synonymous for any 64-bit architecture.
This is a common terminology, on Windows it's a standard keyword, on some Linux distros (fe
Gentoo) as well.
Thanks.
------------------------------------------------------------------------
[2015-04-13 08:34:12] krakjoe@php.net
To change it would be a considerable BC break though, http://lxr.php.net/xref/PHP_TRUNK/ext/standard/info.c#php_get_windows_cpu
has been like that for a long time.
Not sure what is the best thing to do, it would be nice if they were consistent with each other, but
I don't see a good way to actually do it.
------------------------------------------------------------------------
[2015-04-13 08:18:06] derick@php.net
I believe it should return x86_64 - like it does on Linux:
php -r 'echo php_uname("m");'
x86_64
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=69434
--
Edit this bug report at https://bugs.php.net/bug.php?id=69434&edit=1