1--TEST--
2Frameless call with throwing destructor
3--FILE--
4<?php
5class Foo {}
6class Bar {
7    public function __destruct() {
8        throw new Exception();
9    }
10}
11in_array(new Foo(), [new Bar()], true);
12?>
13--EXPECTF--
14Fatal error: Uncaught Exception in %s:%d
15Stack trace:
16#0 %s(%d): Bar->__destruct()
17#1 {main}
18  thrown in %s on line %d
19