note 31540 added to language.operators.errorcontrol
| From: | php-general at lists dot php dot net | Date: | Fri, 25 Apr 2003 11:24:27 +0000 |
| Subject: | note 31540 added to language.operators.errorcontrol | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47072@lists.php.net to get a copy of this message | ||
It should be noted that suppressed error reporting is inherited, so to speak.
Consider this function:
function warning() {
$return = 10 / 0;
return $return;
}
This line will produce a warning;
var_dump(warning());
While these will not:
var_dump(@warning());
@var_dump(warning());
This might not be so obvious for some people; I know I didn't expect this behaviour.
--
http://www.php.net/manual/en/language.operators.errorcontrol.php
http://master.php.net/manage/user-notes.php?action=edit+31540
http://master.php.net/manage/user-notes.php?action=delete+31540
http://master.php.net/manage/user-notes.php?action=reject+31540