2 // Copyright 2004-present Facebook. All Rights Reserved.
5 function func() { echo "func called\n"; }
6 function intercept1() { return false; }
7 function intercept2() {
8 var_dump(debug_backtrace());
11 function intercept3() { throw new Exception("intercept3"); }
12 function __destruct() {}
15 function getCls() { return new Cls(); }
18 fb_intercept('Cls::func', "Cls::$s");
21 } catch (Exception
$e) {
22 echo "Caught exception: " . $e->getMessage() . "\n";