Пример #1
0
function test_ok_undeclared_when_ref_parameter()
{
    $x = 1;
    // this is ok to use $y ... I would rather have people declare $y but
    // it's a lost battle so let's accept that and focus on real bugs
    foo_ref($x, $passed_by_ref_to_funcall);
    echo $passed_by_ref_to_funcall;
}
Пример #2
0
function test_fp_undeclared()
{
    $x = 1;
    foo_ref($x, $y);
    echo $y;
}