mirror of
https://tt-rss.org/git/tt-rss.git
synced 2024-06-28 12:10:52 +02:00
3fd7856543
* move most OTP-related stuff into userhelper * remove old phpqrcode and otphp libraries
23 lines
484 B
PHP
23 lines
484 B
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();
|
|
}
|
|
}
|