note 69218 deleted from function.set-error-handler by cmb

From: Date: Sun, 25 Aug 2019 08:53:33 +0000
Subject: note 69218 deleted from function.set-error-handler by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-211981@lists.php.net to get a copy of this message
Note Submitter: dk at brightbyte dot de ---- Sometimes, you want to "catch" only some errors, and let the default handler deal with the result. I just found out that (at least in PHP 5), the default handler will be called if you return false (not 0 or NULL or '', but false) from your custom handler. This allows for "chaining" handlers. The fature was suggested in this thread: http://www.zend.com/lists/php-dev/200405/msg00491.html - the initial suggestion was to call the default handler if true is returned, but this was changed later on, apperently.

« previous php.notes (#211981) next »