xref: /PHP-8.0/ext/com_dotnet/tests/bug77621.phpt (revision a555cc0b)
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--EXPECTF--
16Warning: com_load_typelib(): Type library constant ADSTYPE_INVALID is already defined in %s on line %d
17