xref: /PHP-8.4/ext/com_dotnet/tests/bug79332.phpt (revision 56f90492)
1--TEST--
2Bug #79332 (php_istreams are never freed)
3--EXTENSIONS--
4com_dotnet
5--FILE--
6<?php
7$ph = new COMPersistHelper(null);
8try {
9    $ph->LoadFromStream(fopen(__FILE__, 'r'));
10} catch (com_exception $ex) {
11    // use hard-coded message to avoid localization issues
12    echo "A com_exception has been thrown\n";
13}
14?>
15--EXPECT--
16A com_exception has been thrown
17