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