ru_php/Zend/tests/exit/die_string_cast_exception.phpt

15 lines
279 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 ($status) must be of type string|int, stdClass given