summaryrefslogtreecommitdiff
path: root/sapi/phpdbg/tests/set_exception_handler.phpt
blob: 7d4d4faca0945f23b6a17ca990e302003b6898f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
set_exception_handler() in phpdbg
--PHPDBG--
r
c
q
--EXPECTF--
[Successful compilation of %s]
prompt> [Uncaught Exception in %s on line 4: test]
>00004: throw new Exception("test");
 00005: 
prompt> EX
[Script ended normally]
prompt> 
--FILE--
<?php

set_exception_handler(function () { print "EX\n"; });
throw new Exception("test");