Bug #69781 [NEW]: phpinfo() reports Professional Editions of Windows 7/8/8.1/10 as "Business"

From: Date: Tue, 09 Jun 2015 08:00:42 +0000
Subject: Bug #69781 [NEW]: phpinfo() reports Professional Editions of Windows 7/8/8.1/10 as "Business"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193229@lists.php.net to get a copy of this message
From: wenz Operating system: Windows PHP version: Irrelevant Package: PHP options/info functions Bug Type: Bug Bug description:phpinfo() reports Professional Editions of Windows 7/8/8.1/10 as "Business" 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". -- Edit bug report at https://bugs.php.net/bug.php?id=69781&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69781&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69781&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69781&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69781&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69781&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69781&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69781&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69781&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69781&r=support Expected behavior: https://bugs.php.net/fix.php?id=69781&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69781&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69781&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69781&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69781&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69781&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69781&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69781&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69781&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69781&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69781&r=mysqlcfg

« previous php.bugs (#193229) next »