blah = 789; $hnd = fb_call_user_func_async($doc, array($obj, 'baz'), 73); $rv = fb_end_user_func_async($hnd); var_dump($rv); echo "--------------------\n"; $hnd = fb_call_user_func_async($doc, 'doThrow'); $rv = null; $caught = false; try { $rv = fb_end_user_func_async($hnd); } catch (Exception $e) { $caught = true; } if (!$caught) { echo "Exception was not thrown as expected\n"; } } main();