note 91898 added to function.register-shutdown-function

From: Date: Wed, 01 Jul 2009 05:21:28 +0000
Subject: note 91898 added to function.register-shutdown-function
Groups: php.notes 
Request: Send a blank email to php-notes+get-157741@lists.php.net to get a copy of this message
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. ---- Server IP: 117.104.162.229 Probable Submitter: 58.96.44.86 (proxied: 58.96.44.86) ---- Manual Page -- http://www.php.net/manual/en/function.register-shutdown-function.php Edit -- https://master.php.net/note/edit/91898 Del: integrated -- https://master.php.net/note/delete/91898/integrated Del: useless -- https://master.php.net/note/delete/91898/useless Del: bad code -- https://master.php.net/note/delete/91898/bad+code Del: spam -- https://master.php.net/note/delete/91898/spam Del: non-english -- https://master.php.net/note/delete/91898/non-english Del: in docs -- https://master.php.net/note/delete/91898/in+docs Del: other reasons-- https://master.php.net/note/delete/91898 Reject -- https://master.php.net/note/reject/91898 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157741) next »