On Sun, Nov 1, 2009 at 6:46 PM, Larry Garfield <la...@garfieldtech.com>wrote:
> On Sunday 01 November 2009 2:50:55 pm Daniel Kolbo wrote:
> > Hello,
> > Is there a way to see what objects and functions a script
> > loaded/required/used?
> > I could recursively loop through the globals, but if objects were unset,
> > then i may miss some.
> > I could make a 'tracking' object and every time i load/include a file
> > (which contains a class def or a function def) to add that file to the
> > tracking object...but it would be nice if i didn't have to modify my
> > existing code to see which objects and functions a script actually used,
> > or at least, requested and loaded into memory.
> > Thanks in advance,
> > Daniel Kolbo
> > `
> Depends what you are trying to do with it, but I suspect these are a good
> Larry Garfield
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
You can use the tokenizer's functions to parse the files and recover the
They are easy to understand and make the perfect tool for this kind of
I'd like to know how do you solve this.