|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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: Thu Jun 13 10:01:33 2024 UTC