|
Posted by Bruno Rafael Moreira de Barros on 01/14/08 11:08
function test1() {
trigger_error('My error');
}
application.php
//code...
test1();
//code...
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.
PHP does it, when you call any PHP function and it errors, it says it
came from the file that called it. In my own functions, it says it
came from the declaration... which is kind of useless because that is
what I already know... but when in the application it happened...
that's what's hard to find out.
Navigation:
[Reply to this message]
|