Bug #55258 [Opn->Csd]: Windows Version Detecting Error

From: Date: Thu, 21 Jul 2011 14:50:12 +0000
Subject: Bug #55258 [Opn->Csd]: Windows Version Detecting Error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-162080@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 Updated by: pajoye@php.net Reported by: xiaomao5 at live dot com Summary: Windows Version Detecting Error -Status: Open +Status: Closed Type: Bug Package: Unknown/Other Function Operating System: Windows PHP Version: 5.3SVN-2011-07-21 (SVN) -Assigned To: +Assigned To: pajoye Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2011-07-21 10:49:49] 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 09:31:14] 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 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

« previous php.bugs (#162080) next »