Bug #55258 [Opn]: Windows Version Detecting Error
| From: | xiaomao5 at live dot com | Date: | Thu, 21 Jul 2011 13:31:14 +0000 |
| Subject: | Bug #55258 [Opn]: Windows Version Detecting Error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-162078@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55258&edit=1
ID: 55258
User updated by: xiaomao5 at live dot com
Reported by: xiaomao5 at live dot com
Summary: Windows Version Detecting Error
Status: Open
Type: Bug
Package: Unknown/Other Function
Operating System: Windows
PHP Version: 5.3SVN-2011-07-21 (SVN)
Block user comment: N
Private report: N
New Comment:
Although the patch is generated from the older version, the bug still exists in branches/PHP_5_3.
Previous Comments:
------------------------------------------------------------------------
[2011-07-21 09:28:37] xiaomao5 at live dot com
Description:
------------
In PHP 5.3, and of course all version before it, Windows 7 is detected as 6.2, which would be
Windows 8, which isn't released. So Windows 7, as 6.1 will turn into Unknow Windows
version.(It's also should be Unknown, not Unknow).
Test script:
---------------
<?php
echo php_uname('v');
Expected result:
----------------
build 7601 (Windows 7 Ultimate Edition Service Pack 1)
This is from my patch.
Actual result:
--------------
build 7601 (Unknow Windows version Ultimate Edition Service Pack 1)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55258&edit=1