xref: /PHP-8.1/ext/com_dotnet/tests/bug77621.phpt (revision 56f90492)
1--TEST--
2Bug #77621 (Already defined constants are not properly reported)
3--EXTENSIONS--
4com_dotnet
5--INI--
6com.autoregister_verbose=1
7--FILE--
8<?php
9define('ADSTYPE_INVALID', 0);
10$root = dirname(array_change_key_case($_SERVER, CASE_UPPER)['COMSPEC']);
11com_load_typelib("$root\activeds.tlb");
12?>
13--EXPECTF--
14Warning: com_load_typelib(): Type library constant ADSTYPE_INVALID is already defined in %s on line %d
15