[php-src] PR #17673: Improve COM ctr exception code for failing ProgIDs

From: Date: Sun, 02 Feb 2025 15:27:36 +0000
Subject: [php-src] PR #17673: Improve COM ctr exception code for failing ProgIDs
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-30632@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/17673 Author: cmb69 The $module_name of com::__construct() can be a ProgID, ClassID or moniker. We first try CLSIDFromString(), and if that fails, we go ahead and try to treat the $module_name as a moniker. If that also fails, we throw an exception with the result of MkParseDisplayName() what would just be MK_E_SYNTAX if given a ProgID. This result is highly confusing for the common case where a ProgID is given, which is not registered (e.g. due to a typo). In this case, we use the original HRESULT (CO_E_CLASSSTRING) instead.

« previous php.git-pulls (#30632) next »