1--TEST-- 2exception handler tests - 5 3--FILE-- 4<?php 5 6set_exception_handler("foo"); 7set_exception_handler("foo1"); 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-- 23string(25) "foo1(): Exception thrown!" 24