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