note 22734 added to function.trigger-error
| From: | php-general at lists dot php dot net | Date: | Thu, 27 Jun 2002 22:24:14 +0000 |
| Subject: | note 22734 added to function.trigger-error | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32291@lists.php.net to get a copy of this message | ||
I would use this a lot more if PHP had macros. I want to keep my code simple.
Error("bad thing");
not
trigger_error("bad thing", E_USER_ERROR);
You can't place it in a function, because then the file & line aren't accurate.
--
http://www.php.net/manual/en/function.trigger-error.php
http://master.php.net/manage/user-notes.php?action=edit+22734
http://master.php.net/manage/user-notes.php?action=delete+22734
http://master.php.net/manage/user-notes.php?action=reject+22734