xref: /PHP-8.3/ext/com_dotnet/tests/bug78694.phpt (revision 56f90492)
1--TEST--
2Bug #78694 (Appending to a variant array causes segfault)
3--EXTENSIONS--
4com_dotnet
5--FILE--
6<?php
7foreach ([new com('WScript.Shell'), new variant([])] as $var) {
8    try {
9        $var[] = 42;
10    } catch (com_exception $ex) {
11        var_dump($ex->getMessage());
12    }
13}
14?>
15--EXPECT--
16string(38) "appending to variants is not supported"
17string(38) "appending to variants is not supported"
18