|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67739 Windows 8.1/Server 2012 R2 OS build number reported as 6.2 (instead of 6.3)
Submitted: 2014-08-01 20:35 UTC Modified: 2014-08-04 08:03 UTC
From: Assigned: ab (profile)
Status: Closed Package: PHP options/info functions
PHP Version: 5.6Git-2014-08-01 (Git) OS: Windows 8.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2014-08-01 20:35 UTC]
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 -

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:

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.


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-02 05:51 UTC]
-Assigned To: +Assigned To: ab
 [2014-08-04 08:03 UTC]
-Status: Assigned +Status: Closed
 [2014-08-04 08:03 UTC]
Merged with 8eeacd33646d9b09192ecee8323f222b5963657b and backported into 5.4+.

 [2014-08-28 07:59 UTC]
could you update the NEWS file, too? Thank you! :)
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 01 16:01:28 2023 UTC