1--TEST--
2Bug #60738 Allow 'set_error_handler' to handle NULL
3--FILE--
4<?php
5
6var_dump(set_exception_handler(
7    function() { echo 'Intercepted exception!', "\n"; }
8));
9
10var_dump(set_exception_handler(null));
11
12throw new Exception('Exception!');
13?>
14--EXPECTF--
15NULL
16object(Closure)#1 (0) {
17}
18
19Fatal error: Uncaught Exception: Exception! in %s:%d
20Stack trace:
21#0 {main}
22  thrown in %s on line %d
23