You are here: Re: Finding Unused Variables « PHP Programming Language « IT news, forums, messages
Re: Finding Unused Variables

Posted by Colin McKinnon on 10/13/05 23:35

Umberto Salsi wrote:

> ralphNOSPAM@primemail.com wrote:
>
>> Is there a PHP script that can find unused variables? I'd like to
>> 'clean up' my scripts.
>
> $ phplint --print-context text.php

phplint is an interesting tool but it was originally designed for the
express purpose of making PHP behave as if it were not dynamically typed -
so you're likely to have problems seeing the wood for the trees unless you
use PHP to run your Java/C++ programs ;) Although I'll concede that PHP
might benefit from something like Perl's strict mode.

IIRC the Zend IDE will do this and can also track code coverage - which is
likely to be much more beneficial.

C.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация