xref: /PHP-8.0/ext/com_dotnet/tests/bug39596.phpt (revision f8d79582)
1--TEST--
2Bug #39596 (Creating Variant of type VT_ARRAY)
3--SKIPIF--
4<?php
5if (!extension_loaded("com_dotnet")) print "skip COM/.Net support not present"; ?>
6--FILE--
7<?php
8error_reporting(E_ALL);
9
10try {
11    $binding_string = array('aaa','bbb','ccc');
12    $v = new VARIANT( $binding_string, VT_ARRAY );
13    foreach ($v AS $element) {
14        print $element."\n";
15    }
16} catch (Exception $e) {
17    print $e;
18}
19?>
20--EXPECT--
21aaa
22bbb
23ccc
24