Hello,

On 02/18/2004 02:50 PM, Stuart wrote:
I have a custom error handler class that's working well. My problem is that I can't find a way to find out whether a particular error has been suppressed using the @ prefix. Is there a way to do this with a custom handler?

If you suppress the errors with @, you disable errors.


Anyway, here you may find an error handler function that you can use with set_error_handler() to not only the errors but also dump the backtrace of all the function calls that lead to this, including file names and lines as well function argument values.

This is part of a package of a class that can be used to watch periodically the PHP error log file and send the latest error lines that were added. I use this to be warned immediately about errors that occured in my sites, probably due to problems in my code, so I can take immediate action.

http://www.phpclasses.org/logwatcher



--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to