Bug #77621 [NEW]: Already defined constants are not properly reported
| From: | cmb@php.net | Date: | Thu, 14 Feb 2019 23:12:06 +0000 |
| Subject: | Bug #77621 [NEW]: Already defined constants are not properly reported | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-219584@lists.php.net to get a copy of this message | ||
From: cmb
Operating system: Windows
PHP version: 7.2.15
Package: COM related
Bug Type: Bug
Bug description:Already defined constants are not properly reported
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 bug report at https://bugs.php.net/bug.php?id=77621&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77621&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77621&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77621&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77621&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77621&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77621&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77621&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77621&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77621&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77621&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77621&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77621&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77621&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77621&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77621&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77621&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77621&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77621&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77621&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77621&r=mysqlcfg