|  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
44 + 30 = ?
Subscribe to this entry?

 [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 21 18:01:31 2024 UTC