php.net |  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
Status: Closed Package: Unknown/Other Function
PHP Version: 5.3SVN-2011-07-21 (SVN) OS: Windows
Private report: No CVE-ID:
 [2011-07-21 09:28 UTC] 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)

Patches

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

History

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] pajoye@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=313538
Log: - Fixed bug #55258 (Windows Version Detecting Error) (already fixed in trunk/5.4)
 [2011-07-21 10:50 UTC] pajoye@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: pajoye
 [2011-07-21 10:50 UTC] pajoye@php.net
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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
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-2014 The PHP Group
All rights reserved.
Last updated: Thu Apr 17 06:02:13 2014 UTC