xref: /PHP-8.2/ext/com_dotnet/tests/bug34272.phpt (revision 56f90492)
1--TEST--
2Bug #34272 (empty array onto COM object blows up)
3--EXTENSIONS--
4com_dotnet
5--FILE--
6<?php
7error_reporting(E_ALL);
8
9try {
10    $dict = new COM("Scripting.Dictionary");
11    $dict->add('foo', array());
12    print sizeof($dict['foo'])."\n";
13    $dict->add('bar', array(23));
14    print sizeof($dict['bar'])." \n";
15} catch (Exception $e) {
16    print $e;
17}
18?>
19--EXPECT--
200
211
22