note 8769 added to set_error_handler
| From: | j dot schriver at vindiou dot com | Date: | Wed, 27 Sep 2000 20:52:28 +0000 |
| Subject: | note 8769 added to set_error_handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5502@lists.php.net to get a copy of this message | ||
The output of the example script states that the fatal error is in line 16, where it in fact is
triggered in line 37. The __LINE__ constant displays the line number from the actual line where it
is called, which in this case is line 37. If you do a trigger_error(), I guess you could pass the
line number and script name in the error string, but how can you get access to the line number and
script name in an included error handler function for non triggered errors?
http://www.php.net/manual/function.set-error-handler.php