wkeese/old-api-viewer

$page in read_method_info

Closed this issue · 2 comments

I am getting quite a few errors thrown in regards to variable being unassigned in generate.php. Taking a look at the code, it is trying to figure out if something in inherited by comparing it to a non-existent variable (line 172):

    $method = array(
        "name"=>$nm,
        "scope"=>$n->getAttribute("scope"),
        "from"=>$n->getAttribute("from"),
        "visibility"=>($private=="true"?"private":"public"),
        "parameters"=>array(),
        "return-types"=>array(),
        "inherited"=>$n->getAttribute("from")!=$page,
        "constructor"=>$n->getAttribute("constructor")=="constructor"
    );

$page doesn't exist in this scope.

Ah sorry about that, I checked in a fix (ef311ca). Not sure why I don't see the
errors though.

Could be that your PHP is configured to not output the errors in the output
stream. At least on my machine, any PHP errors are getting written as part
of the return text and so I see them in the application.