[HttpFoundation] [Session] Removed unnecessary PHP version check as minimum requirement is now 5.5.9

This commit is contained in:
Calin Mihai Pristavu 2016-02-15 18:23:19 +02:00
parent 18c3d4f356
commit c0e41f9892

View File

@ -182,12 +182,7 @@ class NativeSessionStorage implements SessionStorageInterface
public function regenerate($destroy = false, $lifetime = null)
{
// Cannot regenerate the session ID for non-active sessions.
if (PHP_VERSION_ID >= 50400 && \PHP_SESSION_ACTIVE !== session_status()) {
return false;
}
// Check if session ID exists in PHP 5.3
if (PHP_VERSION_ID < 50400 && '' === session_id()) {
if (\PHP_SESSION_ACTIVE !== session_status()) {
return false;
}