phpinfo() reports Professional Editions of Windows 7/8/8.1/10 as "Business"
| Bug #69781 | phpinfo() reports Professional Editions of Windows 7/8/8.1/10 as "Business" | ||||
|---|---|---|---|---|---|
| Submitted: | 2015-06-09 08:00 UTC | Modified: | 2015-06-10 19:53 UTC | ||
| From: | wenz@php.net | Assigned: | ab (profile) | ||
| Status: | Closed | Package: | PHP options/info functions | ||
| PHP Version: | Irrelevant | OS: | Windows | ||
| Private report: | No | CVE-ID: | None | ||
[2015-06-09 08:00 UTC] wenz@php.net
Description: ------------ Microsoft changed the behavior of GetProductInfo with Windows 7 and upwards: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724358%28v=vs.85%29.aspx Obviously due to maintain backwards compatibility, applications that were compiled to be compatible with Windows Vista report the Professional, Professional N, and Starter N editions of Windows as Business, Business N, and Starter. We could fix this by defining _WIN32_WINNT as 0x0600 or higher, but would then loose Windows Vista support. The pull request fixes that in a pretty straight forward way. There could be a more elaborate fix, since the "official" wording for the Professional editions from Windows 8 onwards is "Pro", but I'd say we leave it for now. Bug #55319 reports a specific aspect of this bug, namely the "Business" instead of "Professional". Test script: --------------- <?php phpinfo(INFO_GENERAL); Expected result: ---------------- Output contains "Windows 7 Professional" on a Windows 7 Professional machine. Actual result: -------------- Output contains "Windows 7 Business".
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2015-06-09 08:45 UTC] wenz@php.net
[2015-06-09 08:45 UTC] wenz@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: ab
[2015-06-10 00:13 UTC] cmb@php.net
-Status: Feedback +Status: Open
[2015-06-10 00:13 UTC] cmb@php.net
[2015-06-10 09:28 UTC] ab@php.net
-Status: Assigned +Status: Closed
[2015-06-10 09:40 UTC] ab@php.net
[2015-06-10 10:09 UTC] wenz@php.net
[2015-06-10 19:53 UTC] ab@php.net