--TEST-- Bug #61767 (Shutdown functions not called in certain error situation) --FILE-- foo(); ?> --EXPECTF-- Error handler called (Undefined variable $undefined) Fatal error: Uncaught ErrorException: Undefined variable $undefined in %sbug61767.php:%d Stack trace: #0 %s(%d): {closure:%s:%d}(2, 'Undefined varia...', '%s', 13) #1 {main} thrown in %sbug61767.php on line %d Shutting down Array ( [type] => 1 [message] => Uncaught ErrorException: Undefined variable $undefined in %s:%d Stack trace: #0 %s(%d): {closure:%s:%d}(2, 'Undefined varia...', '%s', 13) #1 {main} thrown [file] => %sbug61767.php [line] => %d )