Static Analysis with HipHop for PHP - Sebastian Bergmann

Courtesy Planet PHP  Fri, 01/27/2012 - 13:00

In July 2010 I already blogged about the fact that HipHop for PHP , the source code transformer that turns PHP code into C++ code that can then be compiled with g++, can also be used for static code analysis to find problems in PHP source code.

Today I started to work on a convenience wrapper for HipHop's static analyzer :

➜ ~ hphpa /usr/local/src/code-coverage/PHP hphpa 1.0.0 by Sebastian Bergmann.

/usr/local/src/code-coverage/PHP/CodeCoverage/Filter.php 206 TooManyArgument: $this->addFileToWhitelist($file,...

 

More related items

Kurt Payne's Blog: How to Unit Test pcntl_fork()
Kurt Payne has a new post to his blog showing how you can unit test your process forking in your PHP application (pcntl). At some point, many php developers turn to the pcntl functions in...

How To Run Your Component’s Unit Tests - Stuart...
In my Beyond Frameworks talk, I explained how a component-based architecture can help answer some of the important (i.e. expensive!) questions you might face when creating long-lived apps...

PHPUnit 3.5 - Sebastian Bergmann
Last weekend, during the great PHP Unconference in Hamburg, I released PHPUnit 3.5. Back then I did not have the time to write a proper release announcement. This posting tries to make up for...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com