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)#%d (3) { 17 ["name"]=> 18 string(%d) "{closure:%s:%d}" 19 ["file"]=> 20 string(%d) "%s" 21 ["line"]=> 22 int(%d) 23} 24 25Fatal error: Uncaught Exception: Exception! in %s:%d 26Stack trace: 27#0 {main} 28 thrown in %s on line %d 29