note 32727 added to function.set-error-handler

From: Date: Thu, 05 Jun 2003 09:34:52 +0000
Subject: note 32727 added to function.set-error-handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-49781@lists.php.net to get a copy of this message
class Error { function Error() { error_reporting(E_ALL); function dummy($type, $msg, $line, $context) { if (_DEBUG_) { // this fails... // $this->test1($type, $msg... Error::test1($type, $msg, $line, $context); } else { Error::test2($type, $msg, $line, $context); } } set_error_handler('dummy'); } function test1($type, $msg, $line, $context) { // detailed error message... } function test2($type, $msg, $line, $context) { // softy error message... } } ---- Manual Page -- http://www.php.net/manual/en/function.set-error-handler.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32727 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32727&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32727&report=yes

« previous php.notes (#49781) next »