Arquivos
hhvm/hphp/test/quick/exception_handler.php
T
ptarjan 503f75d08b Rename test directories
These names don't make sense now that we run both suites the same
way.
2013-04-17 09:06:51 -07:00

12 linhas
186 B
PHP

<?php
function exn_throw($exn) {
throw new Exception('throwing second');
}
function main() {
set_exception_handler('exn_throw');
throw new Exception('throwing first');
}
main();