Bug #77621 [Asn->Csd]: Already defined constants are not properly reported
| From: | cmb@php.net | Date: | Thu, 14 Feb 2019 23:40:40 +0000 |
| Subject: | Bug #77621 [Asn->Csd]: Already defined constants are not properly reported | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-219585@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77621&edit=1
ID: 77621
Updated by: cmb@php.net
Reported by: cmb@php.net
Summary: Already defined constants are not properly reported
-Status: Assigned
+Status: Closed
Type: Bug
Package: COM related
Operating System: Windows
PHP Version: 7.2.15
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=de738496c2c323b580d9aff0f121876e4101a910
Log: Fix #77621: Already defined constants are not properly reported
Previous Comments:
------------------------------------------------------------------------
[2019-02-14 23:12:06] cmb@php.net
Description:
------------
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:
---------------
<?php
ini_set('com.autoregister_verbose', 1);
define('ADSTYPE_INVALID', 0);
$root = dirname(array_change_key_case($_SERVER, CASE_UPPER)['COMSPEC']);
com_load_typelib("$root\activeds.tlb");
echo "---DONE---\n";
Expected result:
----------------
Warning: com_load_typelib(): Type library constant ADSTYPE_INVALID is already defined in %s on line
%d
---DONE---
Actual result:
--------------
---DONE---
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77621&edit=1