note 75034 deleted from function.trigger-error by danbrown

From: Date: Sat, 02 Oct 2010 18:59:21 +0000
Subject: note 75034 deleted from function.trigger-error by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-172897@lists.php.net to get a copy of this message
Note Submitter: Wolverine ---- It seems that trigger_error always adds "in [script_path] at line [line_number]" at the end of your message. Unfortunatelly the script_path is always a name of the script where trigger_error function resides. If for example you have live debuging function in included file that uses trigger_error to show you some notices during program execution, trigger error will always show the name of the file where you have this debuging function. I wonder if there's any way to disable adding this "in ... at line ..." in trigger_error so you can use $_SERVER['SCRIPT_FILENAME'] instead?

« previous php.notes (#172897) next »