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