PHP static analysis

For PHP to serve on mission critical web sites, quality assurance becomes essential. However, since it is not a strongly typed language with variable and function declarations, the static error checking is very limited. Many errors, such as missing arguments to functions, are only reported when particular lines of code are run.
By translating the PHP to C , the excellent static analysis that produces errors and warnings in modern C and C compilers can be done on PHP.

hmm.. i recently ran static analysis code over the wyona codebase, and it was very helpful. i would love to have the same for php. id rather it would work with java, but there may be hope.

Leave a comment