xref: /PHP-8.0/ext/com_dotnet/tests/bug45280.phpt (revision 4f892118)
1--TEST--
2Bug #45280 (Reflection of instantiated COM classes causes PHP to crash)
3--SKIPIF--
4<?php
5if (!extension_loaded("com_dotnet")){ echo "skip COM/.Net support not present"; }
6?>
7--FILE--
8<?php
9$dict = new COM("Scripting.Dictionary");
10
11$reflection = new ReflectionObject($dict);
12ob_start();
13echo $reflection;
14ob_get_clean();
15
16echo 'done';
17?>
18--EXPECT--
19done
20