forked from extern/egroupware
exclude old / not used PEAR Autoloader giving PHP Fatal error: Method PEAR_Autoloader::__call() must take exactly 2 arguments
This commit is contained in:
parent
36d8253929
commit
8c1077a7b9
@ -9,7 +9,9 @@
|
|||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
cd ..
|
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 -v 'No syntax errors detected in' | \
|
||||||
grep '^PHP' | \
|
grep '^PHP' | \
|
||||||
perl -pe 'END { exit $status } $status=1 if /^PHP (Fatal|Parse error)/;'
|
perl -pe 'END { exit $status } $status=1 if /^PHP (Fatal|Parse error)/;'
|
||||||
|
Loading…
Reference in New Issue
Block a user