|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77621 Already defined constants are not properly reported
Submitted: 2019-02-14 23:12 UTC Modified: 2019-02-14 23:12 UTC
From: Assigned: cmb (profile)
Status: Closed Package: COM related
PHP Version: 7.2.15 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2019-02-14 23:12 UTC]
When a typelib is imported which defines a constant which has
already been defined, the COM extension is supposed to report
this, if com.autoregister_verbose is enabled and the imported
constant has the same value as the already defined constant.  This
(usually) does not happen, though.

Test script:
ini_set('com.autoregister_verbose', 1);
define('ADSTYPE_INVALID', 0);
$root = dirname(array_change_key_case($_SERVER, CASE_UPPER)['COMSPEC']);
echo "---DONE---\n";

Expected result:
Warning: com_load_typelib(): Type library constant ADSTYPE_INVALID is already defined in %s on line %d

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-02-14 23:12 UTC]
-Assigned To: +Assigned To: cmb
 [2019-02-14 23:40 UTC]
Automatic comment on behalf of
Log: Fix #77621: Already defined constants are not properly reported
 [2019-02-14 23:40 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 15:01:30 2024 UTC