|
@@ 156-160 (lines=5) @@
|
| 153 |
|
// so we'd have to hack around this ... |
| 154 |
|
if (($this->_file_new = ! file_exists($this->_file_path.$session_id)) === TRUE) |
| 155 |
|
{ |
| 156 |
|
if (($this->_file_handle = fopen($this->_file_path.$session_id, 'w+b')) === FALSE) |
| 157 |
|
{ |
| 158 |
|
log_message('error', "Session: File '".$this->_file_path.$session_id."' doesn't exist and cannot be created."); |
| 159 |
|
return $this->_failure; |
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
elseif (($this->_file_handle = fopen($this->_file_path.$session_id, 'r+b')) === FALSE) |
| 163 |
|
{ |
|
@@ 162-166 (lines=5) @@
|
| 159 |
|
return $this->_failure; |
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
elseif (($this->_file_handle = fopen($this->_file_path.$session_id, 'r+b')) === FALSE) |
| 163 |
|
{ |
| 164 |
|
log_message('error', "Session: Unable to open file '".$this->_file_path.$session_id."'."); |
| 165 |
|
return $this->_failure; |
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
if (flock($this->_file_handle, LOCK_EX) === FALSE) |
| 169 |
|
{ |