xref: /PHP-8.3/ext/com_dotnet/tests/bug79299.phpt (revision 56f90492)
1--TEST--
2Bug #79299 (com_print_typeinfo prints duplicate variables)
3--EXTENSIONS--
4com_dotnet
5--FILE--
6<?php
7$dict = new COM("Scripting.Dictionary");
8ob_start();
9com_print_typeinfo($dict);
10$typeinfo = ob_get_clean();
11preg_match_all('/\/\* DISPID=9 \*\//', $typeinfo, $matches);
12var_dump($matches[0]);
13?>
14--EXPECT--
15array(1) {
16  [0]=>
17  string(14) "/* DISPID=9 */"
18}