note 17254 deleted from features.error-handling by jimw

From: Date: Tue, 18 Dec 2001 20:57:51 +0000
Subject: note 17254 deleted from features.error-handling by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23220@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 //... }

« previous php.notes (#23220) next »