summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-12-11 16:55:55 +0100
committerAndrey Andreev <narf@devilix.net>2015-12-11 16:55:55 +0100
commit8df6efd402180a6361b4dd619f5535d6c2bed334 (patch)
tree82050088838aa75bb143fac92beb2c44453416c6 /system/libraries/Session
parent71a65c359e6aee6f3f7a7f785dea1af4df064701 (diff)
Fix #4039
Diffstat (limited to 'system/libraries/Session')
-rw-r--r--system/libraries/Session/drivers/Session_files_driver.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/libraries/Session/drivers/Session_files_driver.php b/system/libraries/Session/drivers/Session_files_driver.php
index 45da91c46..173b43710 100644
--- a/system/libraries/Session/drivers/Session_files_driver.php
+++ b/system/libraries/Session/drivers/Session_files_driver.php
@@ -183,6 +183,12 @@ class CI_Session_files_driver extends CI_Session_driver implements SessionHandle
return '';
}
}
+ // We shouldn't need this, but apparently we do ...
+ // See https://github.com/bcit-ci/CodeIgniter/issues/4039
+ elseif ($this->_file_handler === FALSE)
+ {
+ return FALSE;
+ }
else
{
rewind($this->_file_handle);