exclude old / not used PEAR Autoloader giving PHP Fatal error: Method PEAR_Autoloader::__call() must take exactly 2 arguments

This commit is contained in:
Ralf Becker 2016-05-30 20:26:37 +02:00
parent 36d8253929
commit 8c1077a7b9

View File

@ -9,7 +9,9 @@
cd `dirname $0`
cd ..
find ${@-.} -name '*.php' -exec php -l {} \; 2>&1 | \
# exclude old / not used PEAR Autoloader giving PHP Fatal error: Method PEAR_Autoloader::__call() must take exactly 2 arguments
find ${@-.} -name '*.php' ! -path '*vendor/pear-pear.php.net/PEAR/PEAR/Autoloader.php' -exec php -l {} \; 2>&1 | \
#grep -v 'No syntax errors detected in' | \
grep '^PHP' | \
perl -pe 'END { exit $status } $status=1 if /^PHP (Fatal|Parse error)/;'