Re: How to look for unused methods/functions and variables/constants.

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

 



Well you can use get_defined_vars() to find all the variables defined
inside of each scope (for instance global scope) that don't really
need to be defined...

http://php.net/get_defined_vars

They can help you unset() or find variables you otherwise don't need
to use. But that's the best I think you can do.

On 12/14/07, Richard Lynch <ceo@xxxxxxxxx> wrote:
> There is a software package called 'gconv' for C which does this...
>
> It may or may not be amenable to PHP...
>
> On Wed, December 12, 2007 3:21 am, Mathijs van Veluw wrote:
> > Hello there,
> >
> > We have a large project with lots of classes.
> > Now i am wondering if there is a way to let something check all those
> > files and tell me which methods/functions variables/constants etc..
> > arn't used anymore.
> >
> > Or even which files arn't used anymore.
> >
> > Is there already something like this?
> >
> > Thx in advance.
> >
> > Mathijs
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/from/lynch
> Yeah, I get a buck. So?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[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