note 39196 added to function.trigger-error
| From: | dzn'tM at ter dot php dot net | Date: | Tue, 20 Jan 2004 14:05:23 +0000 |
| Subject: | note 39196 added to function.trigger-error | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63876@lists.php.net to get a copy of this message | ||
Some might think that trigger_error is like a throw() or an err.raise construction, and @ works like
catch(){} one - in fact it's NOT.
function badgirl(){
trigger_error("shame on me",E_USER_ERROR);
return true;
}
$sheis = @badgirl();
echo "You will never see this line - @ only supress message, not a control flow";
----
Manual Page -- http://www.php.net/manual/en/function.trigger-error.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39196
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39196&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39196&report=yes
Search -- http://master.php.net/manage/user-notes.php