1--TEST-- 2exception handler tests - 7 3--FILE-- 4<?php 5 6set_exception_handler("foo"); 7set_exception_handler(null); 8 9function foo($e) { 10 var_dump(__FUNCTION__."(): ".get_class($e)." thrown!"); 11} 12 13function foo1($e) { 14 var_dump(__FUNCTION__."(): ".get_class($e)." thrown!"); 15} 16 17 18throw new excEption(); 19 20echo "Done\n"; 21?> 22--EXPECTF-- 23Fatal error: Uncaught Exception in %s:%d 24Stack trace: 25#0 {main} 26 thrown in %s on line %d 27