NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Code analizer


Joined: 22 Apr 2009
Posts: 7
Reply with quote
Zend studio have a very great feature, called code analyzer, it woul be nice phpEd have analog
Its find bad things in code like:
this variable used before definition,
this variable was never used,
field must be declared as 'public $a' or 'private $a', and not 'var $a',
sometimes function return value, and sometimes doesnt return nothing
and etc...

Its not only make code better and cleaner, but sometimes help find a bag(you misspelled variable name).
View user's profileFind all posts by goperSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
Hi,

The code analyzer there is a separate executable. You can get it by downloading the Zend Studio trial. It's called ZendCodeAnalyzer.exe

Adding it to PhpED is not so difficult, just use the script I posted in the integration forum
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 22 Apr 2009
Posts: 7
Reply with quote
Used it, but its always says All OK!... and in zend it show errors
View user's profileFind all posts by goperSend private message
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
You can always try to just run the executable to see if that results in any output. The "all okay" can also mean that something went wrong executing the program.
As I stated in the post it is a very rudimentary script and could be vastly improved but it does the job for me.
Are you sure th SetAnalyzer ( ) call contains the correct path and that your PHP is able to run shell_exec ?
View user's profileFind all posts by BlizzSend private messageVisit poster's website
Code analizer
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic