Beispiel #1
0
function test_strict_var()
{
    $vars = array();
    foreach ($vars as $var) {
        misc1($var);
        //ERROR: unused variable, should be declared outide because it's used later
        $nested_var = 1;
    }
    //ERROR: use of undefined variable
    misc1($nested_var);
}
Beispiel #2
0
function take_variable_number_of_args()
{
    misc1(func_get_args());
}