diff options
author | Andrey Andreev <narf@devilix.net> | 2016-12-14 15:14:13 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2016-12-14 15:14:13 +0100 |
commit | 24c866628d0ce5463d7e8b4eba512fa9e7752dfd (patch) | |
tree | 39d65288647ecaae09e2b9bc6a15e34e53f7d7d4 /system/libraries/Session/Session.php | |
parent | 26313bddee1fb67af10141671a47bbe703a025fd (diff) |
Drop all PHP 5.3-related code
Diffstat (limited to 'system/libraries/Session/Session.php')
-rw-r--r-- | system/libraries/Session/Session.php | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/system/libraries/Session/Session.php b/system/libraries/Session/Session.php index 01989d2d7..9d3bd7a2f 100644 --- a/system/libraries/Session/Session.php +++ b/system/libraries/Session/Session.php @@ -105,23 +105,7 @@ class CI_Session { $class = new $class($this->_config); if ($class instanceof SessionHandlerInterface) { - if (is_php('5.4')) - { - session_set_save_handler($class, TRUE); - } - else - { - session_set_save_handler( - array($class, 'open'), - array($class, 'close'), - array($class, 'read'), - array($class, 'write'), - array($class, 'destroy'), - array($class, 'gc') - ); - - register_shutdown_function('session_write_close'); - } + session_set_save_handler($class, TRUE); } else { @@ -190,9 +174,6 @@ class CI_Session { */ protected function _ci_load_classes($driver) { - // PHP 5.4 compatibility - interface_exists('SessionHandlerInterface', FALSE) OR require_once(BASEPATH.'libraries/Session/SessionHandlerInterface.php'); - $prefix = config_item('subclass_prefix'); if ( ! class_exists('CI_Session_driver', FALSE)) |