note 8769 deleted from set_error_handler by ronabop

From: Date: Sun, 01 Oct 2000 08:54:57 +0000
Subject: note 8769 deleted from set_error_handler by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-5776@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?

« previous php.notes (#5776) next »