Edit report at https://bugs.php.net/bug.php?id=55258&edit=1
ID: 55258 Comment by: virsacer at web dot de Reported by: xiaomao5 at live dot com Summary: Windows Version Detecting Error Status: Closed Type: Bug Package: Unknown/Other Function Operating System: Windows PHP Version: 5.3SVN-2011-07-21 (SVN) Assigned To: pajoye Block user comment: N Private report: N New Comment: This is a dupplicate of #52461 Previous Comments: ------------------------------------------------------------------------ [2011-07-21 10:50:11] paj...@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-07-21 10:49:49] paj...@php.net Automatic comment from SVN on behalf of pajoye Revision: http://svn.php.net/viewvc/?view=revision&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