Issue #3412135 by markdorison: Output buffering status check fails when run via CLI

(cherry picked from commit b378c4115e)
merge-requests/6031/head
Alex Pott 2024-01-04 15:39:10 +00:00
parent 6e566f5d7f
commit 012776a0f8
No known key found for this signature in database
GPG Key ID: BDA67E7EE836E5CE
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ function system_requirements($phase) {
}
}
if ($phase === 'runtime') {
if ($phase === 'runtime' && PHP_SAPI !== 'cli') {
if (!function_exists('fastcgi_finish_request') && !function_exists('litespeed_finish_request') && !ob_get_status()) {
$requirements['output_buffering'] = [
'title' => t('Output Buffering'),