1--TEST-- 2GH-10695: Uncaught exceptions are not caught again 3--FILE-- 4<?php 5register_shutdown_function(function () { 6 echo "shutdown\n"; 7 set_exception_handler(function (\Throwable $exception) { 8 echo 'Caught: ' . $exception->getMessage() . "\n"; 9 }); 10}); 11 12throw new \Exception('main'); 13?> 14--EXPECTF-- 15Fatal error: Uncaught Exception: main in %s:%d 16Stack trace: 17#0 {main} 18 thrown in %s on line %d 19shutdown 20