Last active
June 27, 2016 05:40
-
-
Save matthewpoer/198625ce601139d38c6c7530dd7496ba to your computer and use it in GitHub Desktop.
PHP Syntax Check. Checks the syntax using `php -l` for all PHP files in a directory. Only reports the errors and file names (i.e. doesn't show "No syntax errors detected in..."
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find ./ -type f -name \*.php -exec php -l {} \; | grep -v 'No syntax errors' |
Logging:
find . -type f -name \*.php -exec php -l {} \; > SyntaxCheck.log 2> SyntaxCheckFailure.log
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To get just the current dir's php files: