summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/Session.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2022-03-03 00:20:55 +0100
committerAndrey Andreev <narf@devilix.net>2022-03-03 00:20:55 +0100
commit3378180483140fa9251e50843bda15a508e85e89 (patch)
tree5511462e595ccd3d40033d5c2ec01154ff2aa7eb /system/libraries/Session/Session.php
parentbb7192e43b251cb9620b35859f6283e80897c331 (diff)
parent4196eb22d7aa2f9d8325865567c2cbb82fd70960 (diff)
Merge branch '3.1-stable' into develop
Diffstat (limited to 'system/libraries/Session/Session.php')
-rw-r--r--system/libraries/Session/Session.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php
index 95defbedb..2d55f822a 100644
--- a/system/libraries/Session/Session.php
+++ b/system/libraries/Session/Session.php
@@ -205,6 +205,9 @@ class CI_Session {
*/
protected function _ci_load_classes($driver)
{
+ // PHP 7 compatibility
+ interface_exists('SessionUpdateTimestampHandlerInterface', FALSE) OR require_once(BASEPATH.'libraries/Session/SessionUpdateTimestampHandlerInterface.php');
+
require_once(BASEPATH.'libraries/Session/CI_Session_driver_interface.php');
$wrapper = is_php('8.0') ? 'PHP8SessionWrapper' : 'OldSessionWrapper';
require_once(BASEPATH.'libraries/Session/'.$wrapper.'.php');