Bug #69835 [Asn->Csd]: phpinfo() does not report many Windows SKUs

From: Date: Thu, 18 Jun 2015 20:08:02 +0000
Subject: Bug #69835 [Asn->Csd]: phpinfo() does not report many Windows SKUs
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193670@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69835&edit=1 ID: 69835 Updated by: ab@php.net Reported by: wenz@php.net Summary: phpinfo() does not report many Windows SKUs -Status: Assigned +Status: Closed Type: Bug Package: PHP options/info functions Operating System: Windows PHP Version: Irrelevant Assigned To: ab Block user comment: N Private report: N New Comment: merged :) Previous Comments: ------------------------------------------------------------------------ [2015-06-16 10:33:11] ab@php.net Thanks for the patch, gonna merge next days. ------------------------------------------------------------------------ [2015-06-15 12:28:47] wenz@php.net Description: ------------ According to https://msdn.microsoft.com/en-us/library/windows/desktop/ms724358%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396, GetProductInfo() may return over 80 different SKUs. phpinfo() currently only supports 25 of them. I have prepared a patch against 5.5 that adds ~50 more SKUs. The following ones were omitted: - PRODUCT_SOLUTION_EMBEDDEDSERVER_CORE (0x39), PRODUCT_EMBEDDED (0x41) - listed in the Windows SDK, but not in the link above - PRODUCT_STARTER_E, PRODUCT_HOME_BASIC_E, PRODUCT_HOME_PREMIUM_E, PRODUCT_PROFESSIONAL_E, PRODUCT_ENTERPRISE_E, PRODUCT_ULTIMATE_E - listed on the URL above as "not supported". - also, we do not identify a SKU where GetProductInfo returns PRODUCT_UNDEFINED (0x1) Test script: --------------- <?php phpinfo(INFO_GENERAL); Expected result: ---------------- On Windows 7 Professional N, output should contain "Professional N edition" Actual result: -------------- Edition is not detected ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69835&edit=1

« previous php.bugs (#193670) next »