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.

I believe there is documentation out there for how to make the hook.

Cheers,
Peter

On Nov 27, 2007 9:47 AM, Andrew Gaffney <[EMAIL PROTECTED]> wrote:
> In my PHP-based websites for work, I have some error handling code that 
> captures
> any errors, displays a "friendly" error page, and then sends me an email with
> all the details about the error.
>
> However, this doesn't work for syntax/parse errors in pages, since the code is
> not actually executed in this case. I can't seem to find anything online about
> capturing these errors and notifying myself somehow.
>
> Does anyone do something like this already?
>
> --
> Andrew Gaffney                                 
> http://dev.gentoo.org/~agaffney/
> Gentoo Linux Developer             Catalyst/Installer + x86 release 
> coordinator
> --
> [EMAIL PROTECTED] mailing list
>
>
-- 
[EMAIL PROTECTED] mailing list

Reply via email to