mirror of
https://github.com/Aviortheking/DeltaCMS.git
synced 2025-07-22 10:19:51 +00:00
add comparason for php 7.1 support
This commit is contained in:
@ -58,7 +58,11 @@ class SessionCache extends AbstractCache
|
||||
|
||||
public function clear()
|
||||
{
|
||||
return session_reset();
|
||||
if (phpversion() !== false && version_compare(phpversion(), '7.2.0', '<')) {
|
||||
return session_reset();
|
||||
}
|
||||
session_reset();
|
||||
return true;
|
||||
}
|
||||
|
||||
public function has($key)
|
||||
|
Reference in New Issue
Block a user