From 8cdc2aaa6b21c0909af7f58175c537ad891aa3c3 Mon Sep 17 00:00:00 2001 From: Thibault Dockx <thibault.dockx@fusiondirectory.org> Date: Thu, 16 Jan 2025 15:44:30 +0000 Subject: [PATCH] :sparkles: Feat(php8.2) - progression Progression --- include/class_config.inc | 9 +++++++++ include/php_setup.inc | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/class_config.inc b/include/class_config.inc index e05b5e95c..52c6c4f1e 100755 --- a/include/class_config.inc +++ b/include/class_config.inc @@ -83,6 +83,10 @@ class config } } + /** + * Note: Magic method allowing to declare what needs to be serialized - E.g required for session_regenerate_id(). + * @return array + */ public function __serialize (): array { return [ @@ -96,6 +100,11 @@ class config ]; } + /** + * @param array $data + * @return void + * Note : Magic method allowing to regenerate required data set in $_SESSION during restoration. + */ public function __unserialize(array $data): void { $this->config_found = $data['config_found']; diff --git a/include/php_setup.inc b/include/php_setup.inc index 5091ecb53..dfe4c432c 100755 --- a/include/php_setup.inc +++ b/include/php_setup.inc @@ -335,9 +335,6 @@ $smarty->registerPlugin('modifier', 'base64_encode', 'base64_encode'); # It should not require registration as it is put in the plugins folder of smarty #$smarty->registerPlugin('function', 'filePath', 'smarty_function_filePath'); -# Deactivate php process within smarty template -$smarty->allow_php = false; - /* Check for SSL connection */ $ssl = ''; if (!URL::sslOn()) { -- GitLab