note 17254 added to features.error-handling

From: Date: Sat, 01 Dec 2001 20:44:30 +0000
Subject: note 17254 added to features.error-handling
Groups: php.notes 
Request: Send a blank email to php-notes+get-21516@lists.php.net to get a copy of this message
To avoid producing an error message when you use the '@' prefix AND your custom error handling function, test the value of error_reporting() before echoing the error. in the example above: function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars) { $temp=error_reporting(); //$temp=0 means you used the @ prefix if($temp==0) return; //Handle the error //... } -- http://www.php.net/manual/en/features.error-handling.php http://master.php.net/manage/user-notes.php?action=edit+17254 http://master.php.net/manage/user-notes.php?action=delete+17254 http://master.php.net/manage/user-notes.php?action=reject+17254

« previous php.notes (#21516) next »