1--TEST--
2Bug #79777: String cast exception during die should be handled gracefully
3--FILE--
4<?php
5
6try {
7    die(new stdClass);
8} catch (TypeError $e) {
9    echo $e->getMessage(), PHP_EOL;
10}
11
12?>
13--EXPECT--
14exit(): Argument #1 ($status) must be of type string|int, stdClass given
15