xref: /PHP-7.4/ext/com_dotnet/tests/bug79248.phpt (revision f649aded)
1--TEST--
2Bug #79248 (Traversing empty VT_ARRAY throws com_exception)
3--SKIPIF--
4<?php
5if (!extension_loaded('com_dotnet')) die('skip com_dotnet extension not available');
6?>
7--FILE--
8<?php
9$v = new variant([], VT_ARRAY);
10foreach ($v as $el) {
11    var_dump($el);
12}
13echo "done\n";
14?>
15--EXPECT--
16done
17