feat(installer): Fully show non-installed extensions (#1761)

This commit is contained in:
Roman Kelesidis 2025-01-15 15:37:20 +03:00 committed by GitHub
commit 8fcc62d2a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -168,12 +168,18 @@ if (!version_compare(PHP_VERSION, CHECK_REQUIREMENTS['php_min_version'], '>='))
foreach (CHECK_REQUIREMENTS['ext_list'] as $ext) { foreach (CHECK_REQUIREMENTS['ext_list'] as $ext) {
if (!extension_loaded($ext)) { if (!extension_loaded($ext)) {
out("- ext-$ext not installed. Check out php.ini file", 'error'); out("- ext-$ext not installed. Check out php.ini file", 'error');
exit; if (!defined('EXTENSIONS_NOT_INSTALLED')) {
define('EXTENSIONS_NOT_INSTALLED', true);
}
} else { } else {
out("- ext-$ext installed!"); 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 // Check if already installed
if (is_file(BB_ROOT . '.env')) { if (is_file(BB_ROOT . '.env')) {