note 32727 deleted from function.set-error-handler by sniper

From: Date: Fri, 03 Oct 2003 05:37:38 +0000
Subject: note 32727 deleted from function.set-error-handler by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57652@lists.php.net to get a copy of this message
Note Submitter: Martin Cabalzar ---- 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... } }

« previous php.notes (#57652) next »