note 106061 added to function.set-error-handler

From: Date: Thu, 06 Oct 2011 18:25:44 +0000
Subject: note 106061 added to function.set-error-handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-183675@lists.php.net to get a copy of this message
This actually works to catch Fatal errors... function shutdown() { $a=error_get_last(); if($a==null) echo "No errors"; else print_r($a); } register_shutdown_function('shutdown'); ini_set('max_execution_time',1 ); sleep(3); it will output Array ( [type] => 1 [message] => Maximum execution time of 1 second exceeded [file] => /path/to/file_name.php [line] => 136 ) ---- Server IP: 190.90.160.68 Probable Submitter: 190.157.143.112 (proxied: 190.157.143.112) ---- Manual Page -- http://www.php.net/manual/en/function.set-error-handler.php Edit -- https://master.php.net/note/edit/106061 Del: integrated -- https://master.php.net/note/delete/106061/integrated Del: useless -- https://master.php.net/note/delete/106061/useless Del: bad code -- https://master.php.net/note/delete/106061/bad+code Del: spam -- https://master.php.net/note/delete/106061/spam Del: non-english -- https://master.php.net/note/delete/106061/non-english Del: in docs -- https://master.php.net/note/delete/106061/in+docs Del: other reasons-- https://master.php.net/note/delete/106061 Reject -- https://master.php.net/note/reject/106061 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183675) next »