Arquivos
hhvm/hphp/test/vm/intercept.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

19 linhas
273 B
PHP

<?php
function foo() { var_dump(__METHOD__); }
function bar() {
var_dump(__METHOD__);
throw new Exception;
}
function boo() {
fb_intercept('foo', 'bar', 'bar');
try {
foo();
} catch (Exception $e) {
var_dump("caught:" . $e->getMessage());
}
}
boo();