note 75034 added to function.trigger-error
| From: | Wolverine at osu1 dot php dot net | Date: | Wed, 09 May 2007 12:51:11 +0000 |
| Subject: | note 75034 added to function.trigger-error | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-126361@lists.php.net to get a copy of this message | ||
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?
----
Server IP: 195.136.184.34
Probable Submitter: 85.219.142.101
----
Manual Page -- http://www.php.net/manual/en/function.trigger-error.php
Edit -- https://master.php.net/note/edit/75034
Del: integrated -- https://master.php.net/note/delete/75034/integrated
Del: useless -- https://master.php.net/note/delete/75034/useless
Del: bad code -- https://master.php.net/note/delete/75034/bad+code
Del: spam -- https://master.php.net/note/delete/75034/spam
Del: non-english -- https://master.php.net/note/delete/75034/non-english
Del: in docs -- https://master.php.net/note/delete/75034/in+docs
Del: other reasons-- https://master.php.net/note/delete/75034
Reject -- https://master.php.net/note/reject/75034
Search -- https://master.php.net/manage/user-notes.php