ls -1 *.php | xargs php -l doesn’t work, any clues why ? (it only checks the first file)
I am trying to detect parse errors in my whole application.
Thank you.
EDIT:
Came up with this, it is sufficient for my needs:
#!/bin/sh
for chave in `find . | grep .php` ; do
php -l $chave
done
This has the added bonus of working no matter what characters your filenames contain. Unfortunately I’m not sure why it’s not working without the -L 1 part 🙁