Register a shutdown function to log fatal errors
authorBryan Davis <bd808@wikimedia.org>
Fri, 5 Dec 2014 01:23:03 +0000 (18:23 -0700)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 9 Dec 2014 23:27:40 +0000 (23:27 +0000)
commit3ae8eb2416b3306346e2efc876a5cc124955ff54
treee7523464a1296b260f27d2c54f47758e8b0508d9
parentde6393d19099df4c5c120784c304738fb5885944
Register a shutdown function to log fatal errors

MWExceptionHandler::handleFatalError() is installed as a shutdown
function to inspect `error_get_last()` output and log the error via
MWExceptionHandler::logError(). The error is examined to determine if it
is a missing class error so that a descriptive log message can be
provided instructing the server administrator on 3rd party library
installation methods.

Bug: T74777
Change-Id: I04748626487022c51050ffa7846236947a082d68
includes/exception/MWExceptionHandler.php