--TEST-- Test catching fatal errors when handlers are nested --FILE-- setExceptionHandler('print_r'); if (true) { class Broken implements \Iterator { } } ?> --EXPECTF-- array(1) { [0]=> string(37) "Error and exception handlers do match" } object(Symfony\Component\ErrorHandler\Error\FatalError)#%d (%d) { ["message":protected]=> string(209) "Error: Class Symfony\Component\ErrorHandler\Broken contains 5 abstract methods and must therefore be declared abstract or implement the remaining methods (Iterator::current, Iterator::next, Iterator::key, ...)" %a ["error":"Symfony\Component\ErrorHandler\Error\FatalError":private]=> array(%d) { ["type"]=> int(1) ["message"]=> string(202) "Class Symfony\Component\ErrorHandler\Broken contains 5 abstract methods and must therefore be declared abstract or implement the remaining methods (Iterator::current, Iterator::next, Iterator::key, ...)" ["file"]=> string(%d) "%s" ["line"]=> int(%d)%A } }