|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-04-13 07:17 UTC] 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');
?>
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 04:00:01 2025 UTC |
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".I believe it should return x86_64 - like it does on Linux: php -r 'echo php_uname("m");' x86_64