|
Posted by C. (http://symcbean.blogspot.com/) on 01/14/08 13:56
On 14 Jan, 11:08, Bruno Rafael Moreira de Barros
<brunormbar...@gmail.com> wrote:
> I want the trigger_error to say the error came from application.php
> and the line where it came from. I have a custom error handler, so if
> some change on the error handler (or test1(), for that matter) is
> needed, I will gladly do it.
>
These *are* the parameters to the customer error handler.
from http://uk.php.net/manual/en/function.set-error-handler.php
The third parameter is optional, errfile , which contains the
filename that the error was raised in, as a string.
The fourth parameter is optional, errline , which contains the line
number the error was raised at, as an integer.
See also:
http://uk.php.net/debug_backtrace
C.
Navigation:
[Reply to this message]
|