# defender-security/5.7.2/vendor/thecodingmachine/safe/generated/fpm.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 5.7.2. 23 lines.

- Page: https://pluginprobe.com/plugins/defender-security/5.7.2/code/vendor/thecodingmachine/safe/generated/fpm.php
- Raw: https://pluginprobe.com/plugins/defender-security/5.7.2/raw/vendor/thecodingmachine/safe/generated/fpm.php
- Modified: 2022-06-13T09:01:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/5.7.2/code/vendor/thecodingmachine/safe/generated/fpm.php#L10-L20`.

```php
<?php

namespace Safe;

use Safe\Exceptions\FpmException;

/**
 * This function flushes all response data to the client and finishes the
 * request. This allows for time consuming tasks to be performed without
 * leaving the connection to the client open.
 *
 * @throws FpmException
 *
 */
function fastcgi_finish_request(): void
{
    error_clear_last();
    $result = \fastcgi_finish_request();
    if ($result === false) {
        throw FpmException::createFromPhpError();
    }
}

```
