I'm maintaining a codebase of 600ish files, with around 180k lines. I'm using a subversion repository to manage revisions, and recently added a php -l call on checked in files to make sure errors are not checked into the repository.
Is there a similar tool that will check for warnings or notices? In particular, I want to be able to detect when a variable is used without being initialized. The codebase has many bugs that are the result of the original developers making minor typos, and tracking down these sorts of mistakes by hand is quite difficult.
I tried php -d error_reporting=4095 -l filename.php, but -l only checks for parse errors and apparently strict errors - notices and warnings are ignored regardless.