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