1--TEST--
2#[\Deprecated]: Exception Handler is deprecated.
3--FILE--
4<?php
5
6#[\Deprecated]
7function my_exception_handler($e) {
8	echo "Handled: ", $e->getMessage(), PHP_EOL;
9};
10
11set_exception_handler('my_exception_handler');
12
13throw new \Exception('test');
14
15?>
16--EXPECT--
17Deprecated: Function my_exception_handler() is deprecated in Unknown on line 0
18Handled: test
19