From 8c1077a7b94527ff914c1ca5c481ac93d316f452 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 30 May 2016 20:26:37 +0200 Subject: [PATCH] exclude old / not used PEAR Autoloader giving PHP Fatal error: Method PEAR_Autoloader::__call() must take exactly 2 arguments --- doc/php_syntax_check.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/php_syntax_check.sh b/doc/php_syntax_check.sh index 7009d0c7a9..b91074d483 100755 --- a/doc/php_syntax_check.sh +++ b/doc/php_syntax_check.sh @@ -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)/;'