1--TEST--
2Bug #79777: String cast exception during die should be handled gracefully
3--FILE--
4<?php
5
6die(new stdClass);
7
8?>
9--EXPECTF--
10Fatal error: Uncaught Error: Object of class stdClass could not be converted to string in %s:%d
11Stack trace:
12#0 {main}
13  thrown in %s on line %d
14