1--TEST-- 2set_exception_handler() in phpdbg 3--PHPDBG-- 4r 5c 6q 7--EXPECTF-- 8[Successful compilation of %s] 9prompt> [Uncaught Exception in %s on line 4: test] 10>00004: throw new Exception("test"); 11 00005: 12prompt> EX 13[Script ended normally] 14prompt> 15--FILE-- 16<?php 17 18set_exception_handler(function () { print "EX\n"; }); 19throw new Exception("test"); 20