From 8fcc62d2a2fd41927b2f5dae215fe5bbf95f2c96 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 15 Jan 2025 15:37:20 +0300 Subject: [PATCH] feat(installer): Fully show non-installed extensions (#1761) --- install.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install.php b/install.php index f133e5f45..ff42f895c 100644 --- a/install.php +++ b/install.php @@ -168,12 +168,18 @@ if (!version_compare(PHP_VERSION, CHECK_REQUIREMENTS['php_min_version'], '>=')) foreach (CHECK_REQUIREMENTS['ext_list'] as $ext) { if (!extension_loaded($ext)) { out("- ext-$ext not installed. Check out php.ini file", 'error'); - exit; + if (!defined('EXTENSIONS_NOT_INSTALLED')) { + define('EXTENSIONS_NOT_INSTALLED', true); + } } else { out("- ext-$ext installed!"); } } -out("- All extensions are installed!\n", 'success'); +if (!defined('EXTENSIONS_NOT_INSTALLED')) { + out("- All extensions are installed!\n", 'success'); +} else { + exit; +} // Check if already installed if (is_file(BB_ROOT . '.env')) {