From c1536b79784b9465873dd75c174708818063dc88 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Tue, 26 Mar 2019 11:46:50 +0100 Subject: [PATCH] Do not crash if an extension cannot be loaded. Former-commit-id: f303be21ceabe052545e53e1a4b6bcd08a4526c2 --- pandora_console/include/functions_extensions.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pandora_console/include/functions_extensions.php b/pandora_console/include/functions_extensions.php index 8efb4c8f36..4e57ea84d1 100755 --- a/pandora_console/include/functions_extensions.php +++ b/pandora_console/include/functions_extensions.php @@ -380,7 +380,15 @@ function extensions_load_extensions($process_login) // ~ } // ~ } // ~ else { + try { include_once $path_extension; + } + // PHP 7 + catch (Throwable $e) { + } + // PHP 5 + catch (Exception $e) { + } // ~ } } }