2 $doc = __DIR__
. '/fbcufa.inc';
3 require_once 'fbcufa.inc';
6 echo "--------------------\n";
7 $hnd = fb_call_user_func_async($doc, 'foo', array(1,2,3), 'blarg');
8 $rv = fb_end_user_func_async($hnd);
10 echo "--------------------\n";
11 $hnd = fb_call_user_func_async($doc, 'C::bar', 42);
12 $rv = fb_end_user_func_async($hnd);
14 echo "--------------------\n";
15 $hnd = fb_call_user_func_async($doc, array('C', 'bar'), 42);
16 $rv = fb_end_user_func_async($hnd);
18 echo "--------------------\n";
21 $hnd = fb_call_user_func_async($doc, array($obj, 'baz'), 73);
22 $rv = fb_end_user_func_async($hnd);
24 echo "--------------------\n";
25 $hnd = fb_call_user_func_async($doc, 'doThrow');
29 $rv = fb_end_user_func_async($hnd);
30 } catch (Exception
$e) {
34 echo "Exception was not thrown as expected\n";