From 012776a0f8580a94dc11451d1fd0056262ad015a Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Thu, 4 Jan 2024 15:39:10 +0000 Subject: [PATCH] Issue #3412135 by markdorison: Output buffering status check fails when run via CLI (cherry picked from commit b378c4115e52504a1349fd261dfcdf98e99fcc3e) --- core/modules/system/system.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 079fa6cbf7e9..8f557e9ac4d2 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -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'),