Re: How to look for unused methods/functions and variables/constants.
| From: | mike | Date: | Fri, 14 Dec 2007 18:54:03 +0000 |
| Subject: | Re: How to look for unused methods/functions and variables/constants. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-265902@lists.php.net to get a copy of this message | ||
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@l-i-e.com> 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
>
>