Re: Classes and Functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Nov 1, 2009 at 9:50 PM, Daniel Kolbo <kolb0057@xxxxxxx> wrote:

> Hello,
>
> Is there a way to see what objects and functions a script
> loaded/required/used?
>
I don't think it's possible to that in PHP code.

>
> 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.
>
maybe what you are looking for is  xdebug (http://xdebug.org/). It provide
code coverage analysis.

>
> Thanks in advance,
> Daniel Kolbo
> `
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux