示例#1
0
function func_foo4()
{
    //ERROR: multiply defined entity
    func_dup(1);
    func_dup(1);
    //ERROR: too many args
    func_dup(1, 2);
}
示例#2
0
文件: functions.php 项目: nakyau/pfff
function test_call_multiply_defined_function()
{
    //ERROR: multiply defined entity
    func_dup(1);
    //TODO should be reported only once, but now we check for undefined entity
    // not only in error_php.ml but also check_variables_php.ml
    //ERROR: multiply defined entity
    func_dup(1);
    //ERROR: too many args
    func_dup(1, 2);
}