Bug #69835 [NEW]: phpinfo() does not report many Windows SKUs

From: Date: Mon, 15 Jun 2015 12:28:53 +0000
Subject: Bug #69835 [NEW]: phpinfo() does not report many Windows SKUs
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-193503@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() does not report many Windows SKUs 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 bug report at https://bugs.php.net/bug.php?id=69835&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69835&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69835&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69835&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69835&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69835&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69835&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69835&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69835&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69835&r=support Expected behavior: https://bugs.php.net/fix.php?id=69835&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69835&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69835&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69835&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69835&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69835&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69835&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69835&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69835&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69835&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69835&r=mysqlcfg

« previous php.bugs (#193503) next »