4 function bar(int $x, inout
bool $y, inout
string $z) {
11 function meep(inout
$f, $g, inout
$r) {
17 function too_many($name, $obj_or_cls, inout
$args, $ctx, inout
$done) {
18 var_dump($args, $done);
19 $args = ['red', 'green', 'blue', 'apple', 'bannana', 'pear'];
23 function too_few($name, $obj_or_cls, inout
$args, $ctx, inout
$done) {
24 var_dump($args, $done);
29 function wrong_type($name, $obj_or_cls, inout
$args, $ctx, inout
$done) {
30 var_dump($args, $done);
36 fb_intercept('meep', 'too_many', true);
37 fb_intercept('Foo::bar', 'too_few', true);
38 $a = 1; $b = true; $c = 'c';
39 Foo
::bar($a, inout
$b, inout
$c);
42 $a = 1; $b = true; $c = 'c';
43 meep(inout
$a, $b, inout
$c);
46 fb_intercept('meep', 'wrong_type', true);
47 $a = 1; $b = true; $c = 'c';
48 meep(inout
$a, $b, inout
$c);