interface FatalErrorHandlerInterface

The interface implemented by fatal error handlers.

Methods

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.

Details

at line 29
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 36
uninstall()

Uninstalls this fatal error handler.

Exceptions

NotInstalledException If this fatal error handler is not installed.

at line 43
boolean isInstalled()

Returns true if this fatal error handler is installed.

Return Value

boolean True if this fatal error handler is installed.

at line 53
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.