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