All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
23 lines
492 B
PHP
23 lines
492 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();
|
|
$safeResult = \fastcgi_finish_request();
|
|
if ($safeResult === false) {
|
|
throw FpmException::createFromPhpError();
|
|
}
|
|
}
|