3 class Ex1
extends Exception
{
6 class Ex2
extends Exception
{
9 class Ex3
extends Exception
{
28 call_user_func("bar", $a);
55 foreach (array(1,2,3) as $_) {
57 throw new Exception();
60 } catch (Exception
$e) {
67 function __construct() {
68 throw new Exception();
74 call_user_func("hphp_create_object", "A", NULL);
75 } catch (Exception
$e) {
76 print "caught exception\n";
81 class Ex4
extends Ex3
{
82 function __construct($s) {
84 var_dump($this->getTraceAsString());
95 var_dump($e->getTraceAsString());
96 return new Ex4('hello, exception');
100 printf("Exception from %s:%d\n", $e->getFile(), $e->getLine());
101 var_dump($e->getTraceAsString());
105 array_map("foo", $b);