Closes GH-5958
RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
- Fixed bug #60909 (custom error handler throwing Exception + fatal error = no shutdown function)