mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
fix[session]: supress the deprecation warning from php8.4 and above
This commit is contained in:
@@ -356,7 +356,11 @@ class CI_Session {
|
||||
{
|
||||
// Add as many more characters as necessary to reach at least 160 bits
|
||||
$sid_length += (int) ceil((160 % $bits) / $bits_per_character);
|
||||
ini_set('session.sid_length', $sid_length);
|
||||
if (PHP_VERSION_ID >= 80400) {
|
||||
@ini_set('session.sid_length', $sid_length);
|
||||
} else {
|
||||
ini_set('session.sid_length', $sid_length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user