From af49a3bf1afbb6b37685618babf145e85c372f99 Mon Sep 17 00:00:00 2001 From: Joanhey Date: Sun, 10 Sep 2023 22:54:00 +0200 Subject: [PATCH] Diable session_unset() --- cli-php.ini | 3 ++- src/Adapterman.php | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cli-php.ini b/cli-php.ini index c7a5ee4..e78d763 100644 --- a/cli-php.ini +++ b/cli-php.ini @@ -10,4 +10,5 @@ memory_limit = 512M opcache.jit_buffer_size = 128M opcache.jit = tracing -disable_functions=header,header_remove,headers_sent,headers_list,http_response_code,setcookie,session_create_id,session_id,session_name,session_save_path,session_status,session_start,session_write_close,session_regenerate_id,set_time_limit +disable_functions=header,header_remove,headers_sent,headers_list,http_response_code,setcookie,session_create_id,session_id,session_name,session_save_path,session_status,session_start,session_write_close,session_regenerate_id,session_unset,set_time_limit +;disable_classes= diff --git a/src/Adapterman.php b/src/Adapterman.php index 5744738..1d0848e 100644 --- a/src/Adapterman.php +++ b/src/Adapterman.php @@ -30,6 +30,7 @@ class Adapterman 'http_response_code', 'setcookie', + 'session_create_id', 'session_id', 'session_name', @@ -38,7 +39,9 @@ class Adapterman 'session_start', 'session_write_close', 'session_regenerate_id', - 'set_time_limit' + 'session_unset', + + 'set_time_limit', ]; public static function init(): void