hphp_set_error_page

Displays fatal errors with this PHP document.

Description

```function hphp_set_error_page(
string \$page,
): void
```

Displays fatal errors with this PHP document.

When 500 fatal error is about to display, it will invoke this PHP page with all global states right at when the error happens. This is useful for gracefully displaying something helpful information to end users when a fatal error has happened. Otherwise, a blank page will be displayed by default.

Parameters

• `string \$page` - Relative path of the PHP document.