summaryrefslogtreecommitdiff
path: root/session/adodb-session2.php
diff options
context:
space:
mode:
authorMatt Simpson <simpson@queensu.ca>2019-01-10 16:44:34 -0500
committerDamien Regad <dregad@mantisbt.org>2019-01-11 00:23:26 +0100
commit93f13fd8e92ce7349ad84752c68235b252b88468 (patch)
tree81ad19c01e9ca8c93e3134420052b7a3f483fe1e /session/adodb-session2.php
parenta32113c6b3e4e2cb8ae6b49752527d5668a9d7a6 (diff)
downloadadodb-93f13fd8e92ce7349ad84752c68235b252b88468.tar.gz
adodb-93f13fd8e92ce7349ad84752c68235b252b88468.tar.bz2
adodb-93f13fd8e92ce7349ad84752c68235b252b88468.zip
Remove session_module_name('user') calls
These calls throw an error on PHP >= 7.2 "session_module_name(): Cannot set 'user' save handler by ini_set() or session_module_name()". They were previously silently ignored, but as per PHP documentation [1], since PHP 7.2.0 it is explicitly forbidden to set the module name to "user" so this commit removes the function calls from session-related files. Fixes #449 [1] http://php.net/session_module_name Improved commit message. Signed-off-by: Damien Regad <dregad@mantisbt.org>
Diffstat (limited to 'session/adodb-session2.php')
-rw-r--r--session/adodb-session2.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/session/adodb-session2.php b/session/adodb-session2.php
index bb821782..ae5a9f78 100644
--- a/session/adodb-session2.php
+++ b/session/adodb-session2.php
@@ -464,7 +464,6 @@ class ADODB_Session {
/*!
*/
static function _init() {
- session_module_name('user');
session_set_save_handler(
array('ADODB_Session', 'open'),
array('ADODB_Session', 'close'),