Commits

Micah Stetson committed 730b32f

pull in cksyntax from obiblio-10-wip

Comments (0)

Files changed (1)

+#!/bin/sh
+# Check for syntax errors in every PHP file under the current directory.
+
+tmp=`mktemp`
+
+for f in `find . -name '*.php'`; do
+	TERM=dumb php -d display_errors=1 -d html_errors=0 -d error_reporting=4095 -l $f </dev/null >$tmp 2>&1 || cat $tmp
+done | sed '/^Errors parsing /d;/^$/d;s/ on line /:/g' >&2
+
+rm -f $tmp