php-src/sapi/phpdbg/tests/set_exception_handler.phpt
Bob Weinand 11e7447e04 Merge branch 'PHP-7.0' into PHP-7.1
(cherry picked from commit 37ae5f3931)
2016-10-14 01:48:03 +02:00

20 lines
343 B
PHP

--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");