Bug #67739 [Asn->Csd]: Windows 8.1/Server 2012 R2 OS build number reported as 6.2 (instead of 6.3)
| From: | ab@php.net | Date: | Mon, 04 Aug 2014 08:03:24 +0000 |
| Subject: | Bug #67739 [Asn->Csd]: Windows 8.1/Server 2012 R2 OS build number reported as 6.2 (instead of 6.3) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186953@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67739&edit=1
ID: 67739
Updated by: ab@php.net
Reported by: wenz@php.net
Summary: Windows 8.1/Server 2012 R2 OS build number reported
as 6.2 (instead of 6.3)
-Status: Assigned
+Status: Closed
Type: Bug
Package: PHP options/info functions
Operating System: Windows 8.1
PHP Version: 5.6Git-2014-08-01 (Git)
Assigned To: ab
Block user comment: N
Private report: N
New Comment:
Merged with 8eeacd33646d9b09192ecee8323f222b5963657b and backported into 5.4+.
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2014-08-01 20:35:38] wenz@php.net
Description:
------------
The phpinfo() output on Windows 8.1 and Windows Server 2012 R2 reports the internal OS build version
as 6.2.
This is due to the deprecation of GetVersionEx (which we are using) on these platforms - http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074%28v=vs.85%29.aspx
Once we compile the Windows builds with the Visual Studio 2013 compiler and the Windows 8.1 SDK,
_NT_TARGET_VERSION=$(_NT_TARGET_VERSION_LATEST) seems to help. However until then we need a
different approach.
In bug #67407 (PR php-src/691) we already fixed a similar issue for the full Windows version name.
Since there is a small performance penalty with that approach already, the attached pull request
recycles the result of the windows version name test (although it does not look very elegant).
Test script:
---------------
<?php
phpinfo(INFO_GENERAL);
Expected result:
----------------
Output contains "build 6.3" on a Windows 8.1/Windows Server 2012 R2 machine.
Actual result:
--------------
Output contains "build 6.2" on a Windows 8.1/Windows Server 2012 R2 machine.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67739&edit=1