From: "Germán M. Rivera" <[EMAIL PROTECTED]>

>     I would like to know if it is possible to change the format of error
> and warning messages that PHP shows. Now my error notifications look like:
>
>     [Fatal error | Warning | ...]: <error> in <file> on line <line>.
>
>     It would be helpful for me that those messages included some
> additional information, like the output of print_r(debug_backtrace()).
> Is there any way to change those messages?

You can use set_error_handler() to capture and reformat some of them.

http://us2.php.net/manual/en/function.set-error-handler.php

Note: The following error types cannot be handled with a user defined
function: E_ERROR, E_PARSE, E_CORE_ERROR, E_CORE_WARNING, E_COMPILE_ERROR
and E_COMPILE_WARNING.

---John Holmes...

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

Reply via email to