コード例 #1
0
ファイル: variables_fp.php プロジェクト: nakyau/pfff
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
ファイル: variables_fp.php プロジェクト: repos-ocaml/pfff
function test_fp_undeclared()
{
    $x = 1;
    foo_ref($x, $y);
    echo $y;
}