fix[session]: supress the deprecation warning from php8.4 and above

This commit is contained in:
HB9HIL
2024-12-05 10:25:43 +01:00
parent 8a57e2ccb5
commit 9f43737cd8

View File

@@ -356,7 +356,11 @@ class CI_Session {
{ {
// Add as many more characters as necessary to reach at least 160 bits // Add as many more characters as necessary to reach at least 160 bits
$sid_length += (int) ceil((160 % $bits) / $bits_per_character); $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);
}
} }
} }