note 91898 deleted from function.register-shutdown-function by cmb

From: Date: Sun, 03 Feb 2019 18:08:13 +0000
Subject: note 91898 deleted from function.register-shutdown-function by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-210187@lists.php.net to get a copy of this message
Note Submitter: Bob ---- A note about error management. If you like to use the boolean 'or' operator for error detection, like this: <?php register_shutdown_function('my_shutdown_function') or throw new Exception("Could not register shutdown function"); ?> it won't work. This function always returns void which == false, so the exception will *always* be thrown. Error reporting is integrated into the function.

« previous php.notes (#210187) next »