Peter Abrahamsen wrote:
Hi Andrew,

I'm not aware of any way to do this. At my last job we focused on
making sure syntax errors never get into the repository, which was
easy to do. We had a pre-commit hook that ran .php files through php
-l (lint mode). If that failed, the commit was rejected. I had another
hook that made sure all the files contained only valid unicode.

That actually does help me some. I didn't know about php's lint mode. I ran it on all the .php files in this particular site ("find /var/www/<domain>/htdocs -name '*.php' -exec php -l {} \;" for anyone that's curious) and didn't come up with anything.

This all started when one of our order takers told me they got a call from someone who said they got a parse error on our site, but I didn't have any more information than that. I clicked around, but didn't hit any problems.

I still don't see any problems, but at least now I have peace of mind :)

--
Andrew Gaffney                                 http://dev.gentoo.org/~agaffney/
Gentoo Linux Developer             Catalyst/Installer + x86 release coordinator
--
[EMAIL PROTECTED] mailing list

Reply via email to