class FatalErrorHandler implements FatalErrorHandlerInterface

The standard Asplode fatal error handler.

Methods

__construct( HandlerStackInterface $stack = null, Isolator $isolator = null)

Construct a new fatal error handler.

stack()

Get the exception handler stack.

install( integer $reservedMemory = 1048576)

Installs this fatal error handler.

uninstall()

Uninstalls this fatal error handler.

boolean
isInstalled()

Returns true if this fatal error handler is installed.

handle()

Handles PHP shutdown, and produces exceptions for any detected fatal error.

__invoke()

Handles PHP shutdown, and produces exceptions for any detected fatal error.

Details

at line 32
__construct( HandlerStackInterface $stack = null, Isolator $isolator = null)

Construct a new fatal error handler.

Parameters

HandlerStackInterface $stack The exception handler stack to use.
Isolator $isolator The isolator to use.

at line 52
HandlerStackInterface stack()

Get the exception handler stack.

Return Value

HandlerStackInterface The exception handler stack.

at line 64
install( integer $reservedMemory = 1048576)

Installs this fatal error handler.

Parameters

integer $reservedMemory The amount of memory to reserve for fatal error handling.

Exceptions

AlreadyInstalledException If this fatal error handler is already installed.

at line 87
uninstall()

Uninstalls this fatal error handler.

Exceptions

NotInstalledException If this fatal error handler is not installed.

at line 101
boolean isInstalled()

Returns true if this fatal error handler is installed.

Return Value

boolean True if this fatal error handler is installed.

at line 114
handle()

Handles PHP shutdown, and produces exceptions for any detected fatal error.

This function will not actually throw any exceptions. If an installed exception handler is detected, it will create an exception representing the fatal error, and pass it to the installed exception handler.

at line 151
__invoke()

Handles PHP shutdown, and produces exceptions for any detected fatal error.

This function will not actually throw any exceptions. If an installed exception handler is detected, it will create an exception representing the fatal error, and pass it to the installed exception handler.