mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
15 lines
277 B
PHP
15 lines
277 B
PHP
--TEST--
|
|
Bug #79777: String cast exception during die should be handled gracefully
|
|
--FILE--
|
|
<?php
|
|
|
|
try {
|
|
die(new stdClass);
|
|
} catch (TypeError $e) {
|
|
echo $e->getMessage(), PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
exit(): Argument #1 ($code) must be of type string|int, stdClass given
|