--TEST-- GH-10695: Exceptions in destructor during shutdown are caught --FILE-- getMessage() . "\n"; }); const FOO = new Foo; ?> --EXPECT-- Caught: Foo::__destruct