|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #55258 Windows Version Detecting Error
Submitted: 2011-07-21 09:28 UTC Modified: 2011-07-21 10:50 UTC
From: xiaomao5 at live dot com Assigned: pajoye (profile)
Status: Closed Package: Unknown/Other Function
PHP Version: 5.3SVN-2011-07-21 (SVN) OS: Windows
Private report: No CVE-ID: None
 [2011-07-21 09:28 UTC] xiaomao5 at live dot com
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:
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)


windows-7-version-detect-fix (last revision 2011-07-21 13:29 UTC by xiaomao5 at live dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-21 09:31 UTC] xiaomao5 at live dot com
Although the patch is generated from the older version, the bug still exists in branches/PHP_5_3.
 [2011-07-21 10:49 UTC]
Automatic comment from SVN on behalf of pajoye
Log: - Fixed bug #55258 (Windows Version Detecting Error) (already fixed in trunk/5.4)
 [2011-07-21 10:50 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: pajoye
 [2011-07-21 10:50 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

Thanks for the report and patch, forgot to merge that fix in 5.3 back then.
 [2011-08-18 20:31 UTC] virsacer at web dot de
This is a dupplicate of #52461
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 16:01:28 2024 UTC