note 99981 added to errorfunc.configuration

From: Date: Fri, 17 Sep 2010 18:06:04 +0000
Subject: note 99981 added to errorfunc.configuration
Groups: php.notes 
Request: Send a blank email to php-notes+get-172697@lists.php.net to get a copy of this message
You can avoid White Screen Of Death doing the hack below (I found it while reading this blog: http://coldfrontlabs.ca/) /** * Checks for Fatal Error preventing White Screen * * @return void */ function check_shutdown() { $lasterror = error_get_last(); if ($lasterror['type'] == E_ERROR) { // Is it a Fatal Error? // Do something, redirect? output message? You choose. } } // Registers the shutdown function register_shutdown_function('check_shutdown'); ---- Server IP: 69.147.83.197 Probable Submitter: 201.6.156.39 ---- Manual Page -- http://www.php.net/manual/en/errorfunc.configuration.php Edit -- https://master.php.net/note/edit/99981 Del: integrated -- https://master.php.net/note/delete/99981/integrated Del: useless -- https://master.php.net/note/delete/99981/useless Del: bad code -- https://master.php.net/note/delete/99981/bad+code Del: spam -- https://master.php.net/note/delete/99981/spam Del: non-english -- https://master.php.net/note/delete/99981/non-english Del: in docs -- https://master.php.net/note/delete/99981/in+docs Del: other reasons-- https://master.php.net/note/delete/99981 Reject -- https://master.php.net/note/reject/99981 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172697) next »